Sven Budak
Sven Budak

Reputation: 143

AngularJS ui-router and ui-view

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.

Upvotes: 1

Views: 60

Answers (1)

Drag13
Drag13

Reputation: 5978

Look to the ngInclude directive.

Upvotes: 1

Related Questions