Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

Commit 4401053

Browse files
feat(examples/index.template): allow ng-app to be defined in the example
By setting the ng-app-included attribute to true on an example we can have the ng-app directive appear inside the example text rather than being added externally to the generated index.html. This is useful in examples that are actually show-casing the ng-app functionality. See angular/angular.js#6639
1 parent 947e87d commit 4401053

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/templates/examples/index.template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</script>
1616
{%- endif %}
1717
</head>
18-
<body ng-app="{$ doc.example.module $}">
18+
<body {% if !doc.example['ng-app-included'] %}ng-app="{$ doc.example.module $}"{% endif %}>
1919
{$ doc.fileContents $}
2020
</body>
2121
</html>

0 commit comments

Comments
 (0)