0

I'm trying to render a partial in Angular, but it is not rendering. Am I missing something?

Partial here: <div ng-include="partial.html"></div>
<script type="text/ng-template" id="partial.html">
  test
</script>

1 Answer 1

1

ng-include expects an expression that results in a template url. If you need to pass a string, use quotes (in addition to the double-quotes of the attribute):

<div ng-include="'partial.html'"></div>
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.