Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#Exercise 13 : Directives talking to controllers
# Exercise 13 : Directives talking to controllers

##Summary
## Summary
In this exercise, your challenge is to share information between the controller and the directive.
Implement a functionality that will allow you to add (when the mouse hovers over the green square) and remove (when the mouse hovers over the green square)
snowflake. Snowflakes should be displayed in `Let it snow` section.

##Goals
## Goals
* **snow.js** file should contain ***enter*** directive which talks to the `SnowCtrl` controller
* create ***addPetal*** and ***removePetal*** functions to add and remove a snowflake from the `snow` array
* the snowflake consist of a star `< span id="petal" class="glyphicon glyphicon-star"></ span>` and flake `*`
Expand All @@ -14,12 +14,12 @@ snowflake. Snowflakes should be displayed in `Let it snow` section.
**Hint**
You can use ng-repeat directive and combine them together into one petal.

###Before you start, please refer to:
### Before you start, please refer to:
* [angularjs-directives-talking-to-controllers](https://egghead.io/lessons/angularjs-directives-talking-to-controllers)

##Setup
## Setup

###To install dependencies
### To install dependencies

```
yarn install
Expand All @@ -29,16 +29,16 @@ yarn install
bower install
```

###To start application in live reload mode
### To start application in live reload mode

grunt serve

###Jshint
### Jshint
To run verify jshint:

grunt jshint:default

###Run tests
### Run tests

To unit tests in development mode:

Expand Down