Rich MacKinnon
Rich MacKinnon

Reputation: 13

html after ng-include not being rendered

tempHeader.html is rendered fine but then rendering seems to stop?

What am I missing?

<!DOCTYPE html>
<html ng-app>
<head>

  <!-- Angular JS Latest compiled and minified JavaScript -->
  <script src= "http://ajax.googleapis.com/ajax/libs/angularjs/1.2.15/angular.min.js"></script>

</head>

<body>
    I am here

    <ng-include src="'tempHeader.html'"/>

    I am also here  <!-- not rendered -->

</body>
</html>

Upvotes: 0

Views: 59

Answers (1)

Patrick Reck
Patrick Reck

Reputation: 11374

You can't close the tag in itself.

<ng-include src="tempHeader.html"></ng-include> should do the trick.

Upvotes: 1

Related Questions