Giter Site home page Giter Site logo

lab-angular-directives's Introduction

Angular Directives

Introduction

Pair programming lab! We're going to build something just like what we built together in the last lesson, but this time with a couple extra cherries on top.

Your mission is to build a tiny little Angular application together that tracks happiness โ€“ so you can keep a log of how you feel each day. Scientifically proven to average out your happiness over time.

Be creative with how you store the data, and if you have time, check out some of the bonus ideas.

Exercise

  • Use ng-repeat to iterate over data
  • Use ng-if & ng-hide/ng-show to hide & show elements
  • Use ng-form to build forms

Bonus ideas

  • Store a happiness rating along with the time that it was saved
  • Write a function to calculate your average happiness rating
  • Style it like a beast
  • Find some clever uses for Angular directives we haven't used in class yet โ€“ there's a whole slew of documentation out there!

Deliverable

While yours certainly doesn't have to look like this, here's one example of a finished product. We're listing out happiness ratings on the top, and the user can click one of the three options below to update the list! This example uses some clever styling with radio buttons & labels to make it look fancy.

screen shot 2015-07-31 at 11 03 11 am

Additional Resources

lab-angular-directives's People

Contributors

dshcheung avatar

Watchers

James Cloos avatar Jens H. Nielsen avatar

Forkers

wdi-hk-12

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.