how to use angularjs in asp.net master page . i have some error.
ng-app where i will place in masterpage
give some example
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
SenzeyePosted Apr 19, 2016, 7:33 AM
Shuvojit HalderPosted Apr 19, 2016, 9:14 AM
Ravi PatelPosted Apr 19, 2016, 8:15 AM
Nishant MittalPosted Apr 19, 2016, 6:57 AM
You may have a requirement to use AngularJS in the whole MVC application. In this case, it’s better to use bundling and minification of MVC and all the AngularJS libraries at the layout level. To do this, open BundleConfig.cs from the App_Start folder and add a bundle for the AngularJS library as shown below:
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBundle("~/bundles/angular").Include(
"~/Scripts/angular.js"));