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

python - Setting ctypes.Structure default values -

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

C# Apple Bonjour - how to monitor service records within Windows -