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 -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -