-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
This is something that a friend of mine who is new to Angular got tripped up on for some time. I think it would be pretty easy to prevent this.
<html>
<head ng-app>
</head>
<body ng-view>
</body>
</html>The ng-view could have a yellow background to indicate that the view is not inside the app.
Since you can bootstrap your app from JavaScript, it shouldn't show a warning on the following:
<html>
<head>
</head>
<body ng-view>
</body>
</html>Because in that case, you don't have an ngApp on the page.
This might also go well with a warning when using two ngApp directives on the same page, since you cannot bootstrap Angular from the html if you have two ngApp directives on the same page (however, I don't know if this is something that is planned to change).
Just thought I would share. Thanks for the plugin!
Metadata
Metadata
Assignees
Labels
No labels