Coder Social home page Coder Social logo

ember-routing-practice-dumbo-web-080519's Introduction

Ember Routing Practice

Objectives

  • Define routes that render the correct temples.
  • Define a nested route that renders a nested template.
  • Use Handlebars to render the links to different pages.

Instructions

You'll be building out the following routes to render templates:

  • / - the homepage

  • /about - the about page

  • /hello - a page that says hello to you

  • /contributors/sophie - a nested route that renders a nested template that tells you all about one of the contributors to this project (me! hi guys.)

  • First, define the above routes in app/router.js. The /sophie route should be nested unded the /contributors route.

  • Once you have your router defined, you can move on to your templates.

  • The application.hbs template should have a navigation bar. The list items for the nav bar can be found inside the following element in that template:

<ul class="nav navbar-nav">

You MUST fill in the <li>s we provided for you with the correct links. Don't make your own nav bar. The tests are looking for selectors in this navbar.

Fill our the navbar <li>s with a link to the about page and a link to the hello page. The first

  • should contains the link to the hello page, the second <li> should contain the link to the about page.

    • Create a app/templates/hello.hbs that contains the text "Hello!", in an <h4>.
    • Create a app/templates/about.hbs that contains the word "About", in an <h4>.
    • Create a app/templates/contributors/sophie.hbs that contains the text: Sophie is a contributor to this project. in <p> tags.

    View Ember Routing Practice on Learn.co and start learning to code for free.

  • ember-routing-practice-dumbo-web-080519's People

    Contributors

    ember-tomster avatar sophiedebenedetto avatar

    Watchers

     avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

    Recommend Projects

    • React photo React

      A declarative, efficient, and flexible JavaScript library for building user interfaces.

    • Vue.js photo Vue.js

      ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

    • Typescript photo Typescript

      TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    • TensorFlow photo TensorFlow

      An Open Source Machine Learning Framework for Everyone

    • Django photo Django

      The Web framework for perfectionists with deadlines.

    • D3 photo D3

      Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

    Recommend Topics

    • javascript

      JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

    • web

      Some thing interesting about web. New door for the world.

    • server

      A server is a program made to process requests and deliver data to clients.

    • Machine learning

      Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

    • Game

      Some thing interesting about game, make everyone happy.

    Recommend Org

    • Facebook photo Facebook

      We are working to build community through open source technology. NB: members must have two-factor auth.

    • Microsoft photo Microsoft

      Open source projects and samples from Microsoft.

    • Google photo Google

      Google โค๏ธ Open Source for everyone.

    • D3 photo D3

      Data-Driven Documents codes.