angularjs - Inject service at runtime angular -
how inject service @ runtime?
use case:
url has variable 'object' can either customer/user/item. view same, controller same service changes based on url parameter value of 'object'
so when access http://www.application.com/?object=user should load generic view+controller inject service @ runtime.
Comments
Post a Comment