Invoke one controller from another

后端 未结 3 553
渐次进展
渐次进展 2021-01-25 05:30

I am a total newbie in AngularJs, so please be patient with me.

I have the following angular App, which contains two controllers

(function () {
    angul         


        
3条回答
  •  無奈伤痛
    2021-01-25 06:02

    Why dont u create a service instead of second controller and inject it into your main controller and use it.

    May be you can refer this :

    http://ilikekillnerds.com/2014/11/angularjs-call-controller-another-controller/

提交回复
热议问题