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 -

javascript - After add transform scale, I can't set the section to center -