Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 3708162

Browse files
jessicamvsgkalpak
authored andcommitted
docs(guide/expression): typo in one-time-binding
Closes #15668
1 parent 813117d commit 3708162

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/content/guide/expression.ngdoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ An expression that starts with `::` is considered a one-time expression. One-tim
241241
will stop recalculating once they are stable, which happens after the first digest if the expression
242242
result is a non-undefined value (see value stabilization algorithm below).
243243

244-
<example module="oneTimeBidingExampleApp" name="expression-one-time">
244+
<example module="oneTimeBindingExampleApp" name="expression-one-time">
245245
<file name="index.html">
246246
<div ng-controller="EventController">
247247
<button ng-click="clickMe($event)">Click Me</button>
@@ -250,7 +250,7 @@ result is a non-undefined value (see value stabilization algorithm below).
250250
</div>
251251
</file>
252252
<file name="script.js">
253-
angular.module('oneTimeBidingExampleApp', []).
253+
angular.module('oneTimeBindingExampleApp', []).
254254
controller('EventController', ['$scope', function($scope) {
255255
var counter = 0;
256256
var names = ['Igor', 'Misko', 'Chirayu', 'Lucas'];
@@ -265,24 +265,24 @@ result is a non-undefined value (see value stabilization algorithm below).
265265
</file>
266266
<file name="protractor.js" type="protractor">
267267
it('should freeze binding after its value has stabilized', function() {
268-
var oneTimeBiding = element(by.id('one-time-binding-example'));
268+
var oneTimeBinding = element(by.id('one-time-binding-example'));
269269
var normalBinding = element(by.id('normal-binding-example'));
270270

271-
expect(oneTimeBiding.getText()).toEqual('One time binding:');
271+
expect(oneTimeBinding.getText()).toEqual('One time binding:');
272272
expect(normalBinding.getText()).toEqual('Normal binding:');
273273
element(by.buttonText('Click Me')).click();
274274

275-
expect(oneTimeBiding.getText()).toEqual('One time binding: Igor');
275+
expect(oneTimeBinding.getText()).toEqual('One time binding: Igor');
276276
expect(normalBinding.getText()).toEqual('Normal binding: Igor');
277277
element(by.buttonText('Click Me')).click();
278278

279-
expect(oneTimeBiding.getText()).toEqual('One time binding: Igor');
279+
expect(oneTimeBinding.getText()).toEqual('One time binding: Igor');
280280
expect(normalBinding.getText()).toEqual('Normal binding: Misko');
281281

282282
element(by.buttonText('Click Me')).click();
283283
element(by.buttonText('Click Me')).click();
284284

285-
expect(oneTimeBiding.getText()).toEqual('One time binding: Igor');
285+
expect(oneTimeBinding.getText()).toEqual('One time binding: Igor');
286286
expect(normalBinding.getText()).toEqual('Normal binding: Lucas');
287287
});
288288
</file>

0 commit comments

Comments
 (0)