Our site uses cookies. Learn more about their purpose and change of settings in a browser If you are using the site, you give you consent to use cookies, according to current browser settings. Got it

Angular egghead 21 - scope vs $scope

  • Language JavaScript
In this application existed two directives on the same view, but in here we encountered the problem. When complement one input automatically completes the second input.

Exercise 21 : scope vs $scope


In this application there are two directives working on the same scope. The final working application should display two inputs with different values. You can achieve this by editing scope.js.


  • don't make any change in the templates of directives and index.html view.
  • you should be able to insert two different values for the inputs and display them by clicking the corresponding button.

Before you start, please refer to


To install dependencies

npm install

bower install

To start application in live reload mode

grunt serve


To run jshint:

grunt jshint:default

Run tests

To run e2e tests in development mode:

grunt test:e2e

To run jshint, tests and coverage:

npm test

Good luck!

Start this test

I agree to subscription in accordance with the terms of service.
Go to the top and begin