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,13 +1,13 @@
#Exercise 11 : Understanding isolate scope
# Exercise 11 : Understanding isolate scope

##Summary
## Summary
You are an owner of a small sea cargo company. Everyday, you are checking the weather reports to make sure the conditions allow your fleet to depart from the port. This is very tiring and you decide to create a simple application that will allow you to automatically check weather conditions and report to the boat.

Local weather monitoring station provide a very simple API with an example how to use it so you don't have to worry about the data.

Furthermore, you plan to share your application with others so you need to create it as a directive accepting custom reporting function and conditions message. Every boat captain should also be able to set their boat type, because some boats are not able to withstand heavy rain or wind.

##Goals
## Goals

* `shipSender` directive in **port.js**:
* should expect to receive two attributes passed to it's isolated scope: a `customCheck` function and `conditions` string
Expand All @@ -16,13 +16,13 @@ Furthermore, you plan to share your application with others so you need to creat
* **weatherConditions** (use correct method as indicated in comment) and **checkMyBoat** function should be passed to **shipSender** directive
* three **shipSender** directives should be added in the correct place and with proper parameters to **index.html**(check comments)

###Before you start, please refer to:
### Before you start, please refer to:
* [angularjs-understanding-isolate-scope](https://egghead.io/lessons/angularjs-understanding-isolate-scope)
* [angularjs-isolate-scope-attribute-binding](https://egghead.io/lessons/angularjs-isolate-scope-attribute-binding)

##Setup
## Setup

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

```
yarn install
Expand All @@ -32,16 +32,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 run e2e tests in development mode:

Expand Down