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

javascript - Hide toolbar of pdf file opened inside iframe using firefox -

Ansible - ERROR! the field 'hosts' is required but was not set -

Copy range with conditional formatting -