Coder Social home page Coder Social logo

angular-assessment-v2's Introduction

Angular assessment

Fork and clone this repo before step 1.

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 don't need to add one.

2 Setup your router, states, and ui-view so that the home.html loads first. Also set up the routes for the about.html, blog.html and pets.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 pets.html view you're going to need to make an api call to http://practiceapi.devmounta.in/pets to get all the pets.

5 Pet needs to be a directive. The template is provided for you in pet-tmpl.html. It needs to have an isolate scope and take in the pet and show the details. Clicking on the title will navigate to pet details. Clicking on the image will collapse the image and show a link that says "show image" instead. Click on "show image" will hide the "show image" link and show the actual image. All the styles are completed for you already so you'll just need to display the data in the right spot. LOOK FOR COMMENTS.

6 Show all the pets on the pets.html page using your pet directive.

7 After your data is displaying correctly you'll need to get the pet-bio view configured. In your routes file add a route called bio. This route is going to have an id being passed in. The url will look like this bio/:id. Now that the route is setup you can finish the links in the pets.html file.

The link that points to the pet detail will need to pass along the id of the item being clicked using an ui-sref.

8 Pet-details.html 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 http://practiceapi.devmounta.in/pets/ + the id 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.

9 Host your solution on github pages.

  • Open the terminal to where this assessment is
  • Add and commit all of your completed code.
  • Type git checkout -b gh-pages
  • Type git push -u origin gh-pages
  • Find your account name on github and insert it into this url http://YourGithubAccountName.github.io/angular-assessment Open that url to make sure it works, then send that url to your assigned mentor!

Congratulations! you have finished the assessment

angular-assessment-v2's People

Contributors

asbrettisay avatar bencallis1 avatar jrobber avatar dnevarez avatar bellaman avatar blakehagen avatar brackcarmony avatar

Watchers

James Cloos 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.