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

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

c - Calling a function within a loop -

Save a file and then open it using javafx -