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

c - Calling a function within a loop -

vb.net - Unbound DataGridView add row with checkbox error -

How i fill combobox items in Radgridview manually using in vb.net -