diff --git a/README.md b/README.md index 836c531..fc67996 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -#Exercise 17: An alternative approach to controllers +# Exercise 17: An alternative approach to controllers -##Summary +## Summary An alternative approach to controllers assumes that the function should be assigned to the controller, not to the $scope. Create `SumCtrl` and `SubCtrl` providing the basic math sum (`addition`)and subtract (`subtraction`) functions according to the requirements. -##Goals +## Goals * `Calc.js` should contain `SumCtrl` and `SubCtrl` controllers * `SumCtrl` should have the `addition` function assigned to itself * `addition` should consume two arguments and assign the result to `sum` variable @@ -12,12 +12,12 @@ Create `SumCtrl` and `SubCtrl` providing the basic math sum (`addition`)and subt * each controller should have two variables (`firstNumber`, `secondNumber`) initialized with values **12** and **1** * use `addition` and `subtraction` function to display the result in correct header (check comments) -##Before you start, please refer to: +## Before you start, please refer to: * [angularjs-an-alternative-approach-to-controllers](https://egghead.io/lessons/angularjs-an-alternative-approach-to-controllers) -##Setup +## Setup -###To install dependencies +### To install dependencies ``` yarn install @@ -27,16 +27,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: