- fork this repository & create a new branch for your work
- write all of your code in a directory named
lab-+<your name>e.g.lab-susan - 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
- students will be able to create a simple AngularJS application
.babelrc.gitignorepackage.json- create an npm
watchscript for runningwebpack-dev-server --inline --hot
- create an npm
webpack.config.js
-
Build a Simple Cowsay Application:
-
create a form and submit button that will be used to save the current state of the cow's text
- use the
ng-submitdirective to control the form's on-submit functionality - add a button that uses the
ng-clickdirective to populate a secondpretag with the currentpretag state
- use the
-
add a button that uses the
ng-clickdirective to create an undo effect- whenever this button is clicked, it should reset the second
pretag with the content it last showed
- whenever this button is clicked, it should reset the second
-
add a select menu that uses the
ng-repeatdirective- this should be used to populate the select menu with the names of all
cowsayfiles- hint:
cowsay.list((err, list) => {})
- hint:
- this should be used to populate the select menu with the names of all
-
when a
cowsayfilename is selected from the menu, have the firstpretag use the selected cowfile -
use the
ng-showdirective to show the secondpretag only if the history state is not empty -
Optional:
-
style your application!
