@ngdoc overview @name Cookbook: Hello World @description
Your name:
Hello {{name}}!
it('should change the binding when user enters text', function() { expect(binding('name')).toEqual('World'); input('name').enter('angular'); expect(binding('name')).toEqual('angular'); });
# Things to notice Take a look through the source and note: * The script tag that {@link guide/dev_guide.bootstrap bootstraps} the angular environment. * The text {@link api/angular.module.ng.$compileProvider.directive.input input widget} which is bound to the greeting name text. * No need for listener registration and event firing on change events. * The implicit presence of the `name` variable which is in the root {@link api/angular.module.ng.$rootScope.Scope scope}. * The double curly brace `{{markup}}`, which binds the name variable to the greeting text. * The concept of {@link guide/dev_guide.templates.databinding data binding}, which reflects any changes to the input field in the greeting text. tr> aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/SiteMap.js
blob: 61834c6f9f6bf714202b47c85fd639f1cd1e69cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33