Git Product home page Git Product logo

22-angular-controllers's Introduction

cf Lab 22 - Angular Controllers

To Submit this Assignment

  • create a new branch and work off of the same fork that you made yesterday
  • push to your repository
  • submit a pull request to this repository
  • submit a link to your PR in canvas
  • write a question and observation on canvas

Include

  • .eslintrc
  • .babelrc
  • .gitignore
  • package.json
    • create an npm watch script for running webpack-dev-server --inline --hot
    • This will require that you install webpack-dev-server
  • ignore the build directory
  • webpack.config.js

Description

  • refactor the previous lab to use the controller as syntax
  • add a .babelrc file and use the babel loader on your JS files
  • add a form and submit button that will be used to save the current state of the cow's text
    • use the ng-submit directive to control the form's on-submit functionality
    • add a button that uses the ng-click directive to populate a second pre tag with the current pre tag state
  • add a button that uses the ng-click directive to create an undo effect
    • whenever this button is clicked, it should reset the second pre tag with the content it last showed
  • add a select menu that uses the ng-repeat directive
    • this should be used to populate the select menu with the names of all cowsay files
      • hint: cowsay.list((err, list) => {})
  • when a cowsay filename is selected from the menu, have the first pre tag use the selected cowfile
  • use the ng-show directive to show the second pre tag only if the history state is not empty
  • create your own styleguide for the application, using SCSS.
    • make good use of css variables for all of your base (repeatable) styles
    • include at least one mix-in

22-angular-controllers's People

Contributors

cejac avatar christophersclosser avatar jessicamvs avatar jisenber avatar rubiksron avatar silvershotm1 avatar sjschmidt44 avatar

Watchers

 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.