AngularJS - strategy development template?

Is there a clean way to implement a strategy development template or something similar in AngularJS? I basically create a toolbar, but there are different user levels on my system. Thus, some will have different dashboards, which require different functions and much more.

What I wanted to do was replace controllerat the user access level. I would have something like baseDashboardCtrlfor common things, and then with the help of angular.extend()I would create my corresponding "advanced" control panel controllers with various data and functions. I suppose I will create different particles too, but I know how to do it.

I would like to go through this route so that I do not fill out one controller with all this code when it is not needed for some access levels.

+4
source share

All Articles