WARNING: Tried to load angular more than once. when I include JQuery

后端 未结 8 1662
暖寄归人
暖寄归人 2020-12-01 21:58

I am building an yeoman app with an angular-generator.

The js libraries included in my index.html file are:



        
8条回答
  •  庸人自扰
    2020-12-01 22:29

    This happened to me too with .NET and MVC 5 and after a while I realized that within the label: ngview

    again included as section scripts happens to you. To solve the problem on the server side what I do is return the partial view. Something like:

    public ActionResult Index()
    {
        return View();
    }
    
    public ActionResult Login()
    {
        return PartialView();
    }
    
    public ActionResult About()
    {
        return PartialView();
    }
    

提交回复
热议问题