The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

ui-router Named Views

ui-router Named Views

6:38
The ui-router library for AngularJS provides the ability to name views within your application. This is useful for dividing up your application into sections, and changing the content of a section based on the current state.
Watch this lesson now
Avatar
egghead.io

The ui-router library for AngularJS provides the ability to name views within your application. This is useful for dividing up your application into sections, and changing the content of a section based on the current state.

Avatar
Mark

I need to change bower.json to replace previous line with
"angular-ui-router": "0.2.8-bowratic-tedium",

guided by
http://stackoverflow.com/questions/21206503/ui-router-0-2-8-why-the-release-dir-is-empty

to get this to work on 2014Feb06

In reply to egghead.io
Avatar
Gianni Liburdi

You make my day!!! ;)

Avatar
roy

From the example, the author has added '@' on 'content' view: 'content@' for its view to be shown on root's template. Here's my question, correct me if I'm wrong, isn't having 'content' as view name on 'app.alt-one' state is sufficient to override root's template's 'content' view?

Avatar
Alex

Hello from Brazil!

I'm implementing Named Views to my app, but I'm getting the problem described below (I'll use your source code for exemple):
I update just the "content" view. This said, when the user update to URL: '/alt-three', the "content" view made updated, but the "header" view and "footer" view are made empty.

Why?

In reply to egghead.io
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?