Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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?