GithubHelp home page GithubHelp logo

angular-superheroes's Introduction

Angular Superhero Phonebook

Source: https://github.com/hannahhoward/angular-starter-wdi

Prompt

What's the single worse feeling in the world? Answer: When disaster strikes, and you need to call a superhero, but you've forgot their phone number.

That's why you're going to build a Superhero Phone Book!

Your application will display a list of superheroes and their phone numbers in the browser. The user should be able to search that list and the list should be color-coded based on the hero's comics affiliation (e.g., DC, Marvel). You'll also want to add a button next to each superhero that, when clicked, causes the hero's image to be displayed on the page.

Getting Started

Fork and clone this repository. You will be working in the provided three files: index.html, app.js and style.css.

To complete this assignment, you'll need to complete the following steps:

  1. Bootstrap your angular application (i.e., create a module, use ng-app).
  2. Create a controller.
  3. Attach a controller to your view.
  4. Define a collection of superheroes in your app.js. Each superhero should have a name, phone number, comics affiliation and image URL.
  5. Use ng-repeat to render the list of superheroes.
  6. Create a search form. Use ng-model to bind that form's input to a value in the view model.
  7. Use filter to limit the number of superheroes shown in the browser based on user input
  8. Use ng-class to add a class to each superhero in the list indicating their comics affiliation (e.g., ng-class="marvel"). Use that class to color code the list depending on their affiliation (e.g., all Marvel heroes should appear as blue).
  9. Add a button next to each superhero. When clicked, their image should appear within their listing (hint: use $index).

Resources

Bonus

  • Create a form that allows the user to add a superhero to the list.
  • Create another form that allows you to edit a superhero in the list. This form should only appear when the user clicks an "Edit Hero" button.

angular-superheroes's People

Contributors

amaseda avatar avalant avatar superbuggy avatar jarededwards avatar

Watchers

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