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.

Sven Budak
  • 123
  • 2
  • 11

1 Answers1

1

Look to the ngInclude directive.

Tomislav Stankovic
  • 3,080
  • 17
  • 35
  • 42
Drag13
  • 5,859
  • 1
  • 18
  • 42