Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am new to Angular. I got Angular and web api as two seperate asp.net web application projects in visual studio. I just want to integrate Angular UI with Web api using sql server as a medium. I cant get any reference examples on this.

Any tutorial link would be helpful.

What I have tried:

I tried tutorials which were not useful.
Posted
Updated 6-Sep-17 15:25pm

I recommend that you start with this tutorial[^] on CodeProject.
 
Share this answer
 
I recommend to read page 355 of WROX Professional Asp.Net MVC 5 (SPA with AngularJS),
very useful to beginner,

Example I create the core client to Start, below code might help you out

In nuget,
Install-Package -IncludePrerelease AngularJS.Core

Install-Package -IncludePrerelease AngularJS.route


(function () {
    	
    		var app = angular.module("atTheMovies", ["ngRoute"]);
    		var config = function($routeProvider,$locationProvider)
    		{
        		$locationProvider.baseHref = "/Home/Index";
        		$locationProvider.hashPrefix('');
        		$routeProvider
           			.when("/list", { templateUrl: "/Client/Views/list.html" })
           			.when("/details/:id", { templateUrl: "/Client/Views/details.html", controller: "DetailController" })
           			.otherwise({ redirectTo: "/list" });
    		}
    		app.config(config);
	}());
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900