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

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

customize file_field button ruby on rails -

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