1

I got my header in a header.html template file. I want to include it in my index.html with:

<div ui-view="header"></div>

After doing this, i still get this div around my header tag. Is it possible to use ui-view like include in php? I just want to include my header on this place, without this div.

And i know that i can place there direct the header tag. But then is the header template "inclomplete" it feels ugly and dirty.

3
  • Have you tried with <div ng-include="'header.html'"></div> ? Commented Jun 14, 2016 at 20:06
  • No. because i use the ui router and i use nested routings. Commented Jun 14, 2016 at 21:17
  • No this is not possible. See this answer. Commented Jun 15, 2016 at 7:27

1 Answer 1

1

Look to the ngInclude directive.

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.