Why do I need to angular.bootstrap even when I declare ng-app=“MyApp” in JSFiddle

后端 未结 2 892
悲&欢浪女
悲&欢浪女 2020-12-06 03:12

I do not truly understand why it is necessary to do an angular.bootsrap document, [\'MyApp\'] at the end of my CoffeeScript code that manages the module and con

2条回答
  •  执念已碎
    2020-12-06 04:05

    Take a look at the error console. Your code throws an exception:

    Uncaught Error: No module: InventoryModule
    

    I think it has something to do with it. Manually bootstrapping by calling angular.bootstrap seems to workaround the actual problem.

提交回复
热议问题