javascript - Is it possible to inject dynamic angular dependencies -
i have many widgets , component. after time admin
can add new component via bower
, include in html file using grunt
.
but how dynamic dependencies can handle in angular.?
for example. have following module name
, dependencies
app = angular.module("sematree", ['ngroute','ngresource', 'ui.bootstrap', 'adf', 'adf.structures.base', 'adf.widget.table']);
after time want add stackedcolumnchart.js component in application folder , want add 'adf.widget.stackedcolumnchart'
in dependencies opening angular file.
is possibility can add dependencies using grunt.? or can handle dynamic under same folder.?
kindly give me idea.
Comments
Post a Comment