aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/directive/ngController.js
diff options
context:
space:
mode:
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() {