javascript - AngularJS Directives: Storing Scripts and Stylesheets -
is possible place of stylesheets , scripts directive? looking cleanup index file , place them couple directives so
<head> <ng-stylesheets></ng-stylesheets> <ng-scripts></ng-scripts> </head> <body> <p>this test</p> </body>
is unnecessary? prefer cleanliness of directive rather giant block of stylesheet references. using angular 1.x
i don't think it's idea, how dynamically read (to later write) path of scripts angularjs? , if achieve this, need add angular.js , directive index.html file anyway.
i suggest you, tu use grunt/gulp/webpack task dynamically add yours scripts , stylesheets index.html file on build time. or better, can concatenate yours script in single one, using task.
Comments
Post a Comment