- create a fork of this repository
- write all of your code in a directory named
lab-
+<your name>
e.g.lab-brian
- 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
- Install the following webpack and webpack-dev-server dependencies
webpack@1.14.0
webpack-dev-server@1.16.2
.eslintrc
.gitignore
package.json
- create an npm
watch
script for runningwebpack-dev-server --inline --hot
- create an npm
lint
script for linting your JS witheslint
- create an npm
- ignore the build directory
webpack.config.js
- Create a cowsay application with same criteria as today's lecture demo:
- Create an app/index.html file that contains your HTML markup
- hint: be sure to include the
ng-app
directive to point to your default angular module
- hint: be sure to include the
- Create an app/entry.js to house your application logic
- require in your app/scss/main.scss
- Setup an angular module and create a controller for your application logic
- In your
index.html
file, include aninput
andpre
tag that will be used to dynamically update the text of your cow - The
pre
tag should be a preview, showing the result of what was typed into theinput
field (two way data-binding) - Add custom styles (no wireframe based requirements - just be creative!)
- 1pt add a button that uses the
ng-click
directive to populate a secondpre
tag with the currentpre
tag's state - 1pt add an additional button that uses the
ng-click
directive to reset the secondpre
tag with the content it last showed