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
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
#Exercise 24 : ng-view
# Exercise 24 : ng-view

##Summary
## Summary
AngularJS's ngView is a directive that complements the $route service by including the rendered template of the current route into the main layout (typically the index.html) file. The application is already setup but ngView is not utilised.

##Goals
## Goals
Your task is to set up routing in this simple application.

* configure the routing to display home.html page at `/` path'
* display message from controller at `home.html`
* **don't** change `home.html` file and `RouteCtrl`

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

##Setup
## Setup

###ngRoute
### ngRoute

* pay attention on **AngularJS 1.2.x Routing Changes: ngRoute** below the movie
* add `angular-route.js` from `bower_components` to index.html
* add `ngRoute` dependency to application

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

```
yarn install
Expand All @@ -31,16 +31,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