Tutorial 8.1 Basic Expressions 1

******************************************INDEX.HTML*****************************************************
<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Example - example-expression-simple-production</title>
 

  <script src="//code.angularjs.org/snapshot/angular.min.js"></script>
 

 
</head>
<body ng-app="">
  <span>
  1+2={{1+2}}
</span>
</body>
</html>
******************************************INDEX.HTML*****************************************************
******************************************Protractor.js*****************************************************

it('should calculate expression in binding', function() {
  expect(element(by.binding('1+2')).getText()).toEqual('1+2=3');
});

******************************************Protractor.js*****************************************************

Comments

Popular posts from this blog

Tutorial 12.12 Creating a Directive that Wraps Other Elements 3

Tutorial 12.14 Creating Directives that Communicate