Giter Site home page Giter Site logo

front-end-assessment's Introduction

front-end-assessment

1 Create a basic angular app that includes a mainCtrl,mainService,app.js and routes.js The index.html file is included in this repo so you dont need to add one.

2 Config your router so that the home.html loads first. Also set up the routes for the about.html,blog.html and shop.html.

3 Connect the navigation links that are located in the index.html to point to the corresponding page.

4 After you have your routing setup you can start working on getting the data you'll need. For the shop.html view your going to need to make an api call to https://dev-assessment.firebaseio.com/products.json to get all the products. All the styles are completed for you already so you'll just need to display the data in the right spot. LOOK FOR COMMENTS. After your data is displaying correctly you'll need to get the product-details view configured. In your routes file add a route called details. This route is going to have an id being passed in. The url will look like this detail/:id. Now that the route is setup you can finish the links in the shop.html file.

The link that points to the product detail will need to pass along the id of the item being clicked ui-sref="details(id: the id )"".

5 This will be the hardest view to get working. You'll need to check the state params for the id being passed along in the route. after you have that id you'll need to make an api call to https://dev-assessment.firebaseio.com/products/ + the id + .json being passed in the route. This will return the specific item based off the id you passed. Put that item on $scope and display in the view.

Congratulations your have finished the assessment

front-end-assessment's People

Contributors

bencallis1 avatar

Watchers

 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.