Saturday, April 15, 2017

a better way to get modern AngularJS to work with MVC views

What I suggest here is probably not going to work beyond the HomeController. You'll end up with IIS conflicts between paths to the folder you make and the MVC routing. Instead, put your JS files wherever and just doctor up the

  1. npm,
  2. app,
  3. and main

settings at systemjs.config.js as suggested here to go to more complicated paths. Those three doctor-ups in this one file will get you on the other side of all of the red gunk coming up in Google Chrome Developer Tools' console.

 
 

Addendum 4/16/2017: You have to change templateUrl settings in components too.

No comments:

Post a Comment