angularjs multiple controllers on one page

后端 未结 5 949
甜味超标
甜味超标 2021-02-12 15:50

I have a page with multiple controllers, one of the controller is being used in 2 different divs within the same page. I am not sure if it is a scope issue or I just miss someth

5条回答
  •  余生分开走
    2021-02-12 16:29

    I would recommend that you read up on Javascript scope. The issue with your code was the scope of ng-controllers.

提交回复
热议问题