Skip to content

Getting an error when trying to use named view as html element #1318

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
eliasre opened this issue Aug 31, 2014 · 1 comment
Closed

Getting an error when trying to use named view as html element #1318

eliasre opened this issue Aug 31, 2014 · 1 comment
Labels

Comments

@eliasre
Copy link

eliasre commented Aug 31, 2014

Documentation about the ui-router implies that I can use a named view as a html element.
(http://angular-ui.github.io/ui-router/site/#/api/ui.router.state.directive:ui-view#usage)
In my html page I have the following:

When the page loads I get an error:
Multiple directives [uiView, uiView] asking for transclusion on:

I want to avoid using a div, because it would break styling of an element.

Is it really possible to use ui-view as an element and at the same time include a reference to a named view, or am I misreading the documentation?

@nateabele nateabele added the docs label Sep 4, 2014
@nateabele
Copy link
Contributor

The element usage example in the documentation is wrong. Where it says [ui-view="{string}"], it should say [name="{string}"].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants