This post shows an example of how to use @Autowired to inject @Service object in @Controller object Kotlin.
Pass data to Controller from another controller using $mdDialog
[wp_ad_camp_1] There are a couple of ways to do this.One is via $rootScope by creating (maybe temporarily) a public member variable and let the dialog controller read from it. This is also similar to creating a service with public member