Skip to content

lab-steven_lab-22#28

Open
BatemanVO wants to merge 31 commits intocodefellows-seattle-javascript-401d12:masterfrom
BatemanVO:lab-22
Open

lab-steven_lab-22#28
BatemanVO wants to merge 31 commits intocodefellows-seattle-javascript-401d12:masterfrom
BatemanVO:lab-22

Conversation

@BatemanVO
Copy link
Copy Markdown

No description provided.

Also added babel loader to webpack.config.js.
Cowsay will now reference this.currentCow, which will be set in the HTML file by doing an ng-model on the select box's value as cowsayCtrl.currentCow.
The value is initialized on the section tag, which is where the controller is instantiated, using ng-init.
The options tag is populated using ng-repeat.
Will now hide the second pre tag if the history array is empty.
When the form is submitted, it will update this.savedCow to be a copy of the current pre's cow and push it to the history state.
Since the history state will now have a length greater than 0, it will display on the bottom of the page.
Wrapped second pre and button in a div with the ng-show attribute instead of having it on the pre so that the button won't show if there's nothing to remove.
Clicking 'show previous' will show the last cow in the history array.
Added karma, jasmine, and phantomJS to package.json.
Added new npm run scripts to package.json to make use of karma.
Created karma config file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant