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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Senzeye96 reputationPosted Apr 19, 2016, 3:33 AM EDT
Nishant MittalRank #692 · 3.5K reputationPosted Apr 19, 2016, 2:57 AM EDT
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"));
Ravi PatelRank #439 · 5.7K reputationPosted Apr 19, 2016, 4:15 AM EDT
Shuvojit HalderRank #2,827 · 503 reputationPosted Apr 19, 2016, 5:14 AM EDT