Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML Prototyping with Foundation for Apps Getting to Know Foundation for Apps Child Views

Ila Gupta
Ila Gupta
5,147 Points

Could not resolve 'home.featured' from state 'home'??

How should I resolve this error? My page does not load featured.html and shows the above error in console. Here is my code:

home.html
---
name: home
url: /
---

<div class="grid-container">
  <h1>Welcome to Foundation for Apps!</h1>
  <p class="lead">This is version <strong>1.2 Eiger</strong>.</p>

  <a ui-sref="home.featured">View the latest featured trails</a>

  <!--featured trails view-->
  <div ui-view></div>
</div>
featured.html
---
name: home.featured   
url: /featured
---

 <h3>These are the featured trails</h3>

3 Answers

Just to be sure, you're not editing the HTML files in the build/templates folder are you?

Ila Gupta
Ila Gupta
5,147 Points

Not made any changes in templates.

So both files are in the client/templates folder?

Ila Gupta
Ila Gupta
5,147 Points

Hi Iain!! Yes both are in templates folder, it matches exactly with the video still getting the error.

If you're using Workspaces, can you please share a Snapshot of your workspace?