diff --git a/docs/content/guide/expression.ngdoc b/docs/content/guide/expression.ngdoc index 9d795349ee92..842efe31754d 100644 --- a/docs/content/guide/expression.ngdoc +++ b/docs/content/guide/expression.ngdoc @@ -241,7 +241,7 @@ An expression that starts with `::` is considered a one-time expression. One-tim will stop recalculating once they are stable, which happens after the first digest if the expression result is a non-undefined value (see value stabilization algorithm below). - +
@@ -250,7 +250,7 @@ result is a non-undefined value (see value stabilization algorithm below).
- angular.module('oneTimeBidingExampleApp', []). + angular.module('oneTimeBindingExampleApp', []). controller('EventController', ['$scope', function($scope) { var counter = 0; var names = ['Igor', 'Misko', 'Chirayu', 'Lucas']; @@ -265,24 +265,24 @@ result is a non-undefined value (see value stabilization algorithm below). it('should freeze binding after its value has stabilized', function() { - var oneTimeBiding = element(by.id('one-time-binding-example')); + var oneTimeBinding = element(by.id('one-time-binding-example')); var normalBinding = element(by.id('normal-binding-example')); - expect(oneTimeBiding.getText()).toEqual('One time binding:'); + expect(oneTimeBinding.getText()).toEqual('One time binding:'); expect(normalBinding.getText()).toEqual('Normal binding:'); element(by.buttonText('Click Me')).click(); - expect(oneTimeBiding.getText()).toEqual('One time binding: Igor'); + expect(oneTimeBinding.getText()).toEqual('One time binding: Igor'); expect(normalBinding.getText()).toEqual('Normal binding: Igor'); element(by.buttonText('Click Me')).click(); - expect(oneTimeBiding.getText()).toEqual('One time binding: Igor'); + expect(oneTimeBinding.getText()).toEqual('One time binding: Igor'); expect(normalBinding.getText()).toEqual('Normal binding: Misko'); element(by.buttonText('Click Me')).click(); element(by.buttonText('Click Me')).click(); - expect(oneTimeBiding.getText()).toEqual('One time binding: Igor'); + expect(oneTimeBinding.getText()).toEqual('One time binding: Igor'); expect(normalBinding.getText()).toEqual('Normal binding: Lucas'); });