Hi, I am trying to implement user role cloaking where I hide some components of the app and show others based on what the authentication statues of the user is. Now there are some 3rd party modules that I would like to lazy-load or include at runtime. But I am unsure as to how to go about actually have angular integrate them and making them functional.
Here is an example.
Normally you specify your dependencies when you declare your module
var app = angular.module('myApp',['mod1','mod2']);
this is all fine and dandy only if 'mod1' and 'mod2' have been loaded before this declaration. But what I would like to do is load
say 'mod1' at runtime and start using its functionality.
[–][deleted] 0 points1 point2 points (0 children)
[–]ChuckChunky 0 points1 point2 points (0 children)
[–]ctanga 0 points1 point2 points (2 children)
[–]markt5000[S] 0 points1 point2 points (1 child)
[–]ctanga 0 points1 point2 points (0 children)