aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/directive/ngController.js
diff options
context:
space:
mode:
authorPeter Bacon Darwin2014-02-07 20:34:04 +0000
committerPeter Bacon Darwin2014-02-16 19:03:40 +0000
commit1192ae44f1d7f944719520f235e9f2ec895bdfd5 (patch)
tree4d4f06b9448731e2b34ddd2441a0a13dccfc8301 /src/ng/directive/ngController.js
parentf7c8bcb329eb77b153cd91fcf35c5874a6f9a4b3 (diff)
downloadangular.js-1192ae44f1d7f944719520f235e9f2ec895bdfd5.tar.bz2
docs(bike-shed-migration): convert <doc:...> examples to <example>...
Diffstat (limited to 'src/ng/directive/ngController.js')
-rw-r--r--src/ng/directive/ngController.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/ng/directive/ngController.js b/src/ng/directive/ngController.js
index 6d294cc9..29cbc3fc 100644
--- a/src/ng/directive/ngController.js
+++ b/src/ng/directive/ngController.js
@@ -36,8 +36,8 @@
* notice that any changes to the data are automatically reflected in the View without the need
* for a manual update. The example is shown in two different declaration styles you may use
* according to preference.
- <doc:example>
- <doc:source>
+ <example>
+ <file name="index.html">
<script>
function SettingsController1() {
this.name = "John Smith";
@@ -81,8 +81,8 @@
<li>[ <a href="" ng-click="settings.addContact()">add</a> ]</li>
</ul>
</div>
- </doc:source>
- <doc:protractor>
+ </file>
+ </file name="protractor.js" type="protractor">
it('should check controller as', function() {
var container = element(by.id('ctrl-as-exmpl'));
@@ -111,10 +111,10 @@
.getAttribute('value'))
.toBe('yourname@example.org');
});
- </doc:protractor>
- </doc:example>
- <doc:example>
- <doc:source>
+ </file>
+ </example>
+ <example>
+ <file name="index.html">
<script>
function SettingsController2($scope) {
$scope.name = "John Smith";
@@ -158,8 +158,8 @@
<li>[ <a href="" ng-click="addContact()">add</a> ]</li>
</ul>
</div>
- </doc:source>
- <doc:protractor>
+ </file>
+ </file name="protractor.js" type="protractor">
it('should check controller', function() {
var container = element(by.id('ctrl-exmpl'));
@@ -188,8 +188,8 @@
.getAttribute('value'))
.toBe('yourname@example.org');
});
- </doc:protractor>
- </doc:example>
+ </file>
+ </example>
*/
var ngControllerDirective = [function() {