Is it bad to declare ng-app and ng-controller on html tag?

前端 未结 2 2021
醉酒成梦
醉酒成梦 2020-12-29 02:41

Is it bad practice to declare both ng-app and ng-controller on the tag?

For example:

2条回答
  •  长情又很酷
    2020-12-29 03:08

    You should be able to access and set the title via the $window abstraction, thus removing the need to put a controller on the html tag.

提交回复
热议问题