Using empty string (“”) as name for ng-app

后端 未结 2 489
一个人的身影
一个人的身影 2021-01-28 16:28

I wonder why it seems a problem using empty strings for ng-app. In the example provided by w3school, I attempted using empty string to name the ng-app as below, but

相关标签:
2条回答
  • 2021-01-28 17:11

    you have to set a name to your module, or otherwise not use a module and delete the 'ng-app' from you html.

    0 讨论(0)
  • 2021-01-28 17:19

    An empty string null.

    But a spaced string is still a string.

    Thats why you can use it.

    0 讨论(0)
提交回复
热议问题