angularjs - Adding scripts on route config -


upon learning angular route styles, it's easier apply different styles on different templates.

since makes dynamic, wondering if there's library append scripts file(s) dynamically within route configuration on particular template angular route styles stylesheet?

more (focusing more on js: "app/controller/template.js")

$routeprovider.when("/", {   templateurl: "template.html",   controller: "templatectrl",   css: "css/template.css",   js: "app/controller/template.js" }); 

i planning write external js file controller of template. of course, removing property controller: "templatectrl" on configuration file. make things more easier code management.


Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

The canvas has been tainted by cross-origin data in chrome only -