javascript - AngularJS - Strategy Design Pattern? -


is there clean way implement strategy design pattern or in angularjs? building dashboard, there different user levels in system. have different dashboards, require different functions , whatnot.

what looking swap out controller based on user's access level. have basedashboardctrl common things, using angular.extend(), create respective "extended" dashboard controllers different data , functions. suppose i'll create different partials too, know how that.

i'd go route don't fill single controller code, when it's not going needed access levels.


Comments

Popular posts from this blog

c++ - list<myClass<int> * > sort -

SoapUI on windows 10 - high DPI/4K scaling issue -

java - why am i getting a "cannot resolve method" error on getApplication? -