mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-22 05:11:51 +00:00
parent
2ed4ad5502
commit
69452fa94f
1 changed files with 6 additions and 2 deletions
|
|
@ -217,9 +217,13 @@ is located at `./config/karma.conf.js`).
|
||||||
|
|
||||||
* Create a new model property in the controller and bind to it from the template. For example:
|
* Create a new model property in the controller and bind to it from the template. For example:
|
||||||
|
|
||||||
$scope.hello = "Hello, World!"
|
$scope.name = "World"
|
||||||
|
|
||||||
Refresh your browser to make sure it says, "Hello, World!"
|
Then add a new binding to `index.html`:
|
||||||
|
|
||||||
|
<p>Hello, {{name}}!</p>
|
||||||
|
|
||||||
|
Refresh your browser and verifies that it says "Hello, World!".
|
||||||
|
|
||||||
* Create a repeater that constructs a simple table:
|
* Create a repeater that constructs a simple table:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue