From f4d338d393dabb49182d40b4fe90c4d1b51621c0 Mon Sep 17 00:00:00 2001
From: Igor Minar
Date: Fri, 9 Mar 2012 00:00:05 -0800
Subject: chore(*): refactor all ng: to ng-
---
src/directive/ngView.js | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
(limited to 'src/directive/ngView.js')
diff --git a/src/directive/ngView.js b/src/directive/ngView.js
index 74528ad9..d5b24bcb 100644
--- a/src/directive/ngView.js
+++ b/src/directive/ngView.js
@@ -2,12 +2,12 @@
/**
* @ngdoc directive
- * @name angular.module.ng.$compileProvider.directive.ng:view
+ * @name angular.module.ng.$compileProvider.directive.ng-view
* @restrict ECA
*
* @description
* # Overview
- * `ng:view` is a directive that complements the {@link angular.module.ng.$route $route} service by
+ * `ng-view` is a directive that complements the {@link angular.module.ng.$route $route} service by
* including the rendered template of the current route into the main layout (`index.html`) file.
* Every time the current route changes, the included view changes with it according to the
* configuration of the `$route` service.
@@ -59,7 +59,7 @@
}
-
+
Choose:
Moby |
Moby: Ch1 |
@@ -67,7 +67,7 @@
Gatsby: Ch4 |
Scarlet Letter
-
+
$location.path() = {{$location.path()}}
@@ -80,13 +80,13 @@
it('should load and compile correct template', function() {
element('a:contains("Moby: Ch1")').click();
- var content = element('.doc-example-live ng\\:view').text();
+ var content = element('.doc-example-live [ng-view]').text();
expect(content).toMatch(/controller\: ChapterCntl/);
expect(content).toMatch(/Book Id\: Moby/);
expect(content).toMatch(/Chapter Id\: 1/);
element('a:contains("Scarlet")').click();
- content = element('.doc-example-live ng\\:view').text();
+ content = element('.doc-example-live [ng-view]').text();
expect(content).toMatch(/controller\: BookCntl/);
expect(content).toMatch(/Book Id\: Scarlet/);
});
@@ -97,11 +97,11 @@
/**
* @ngdoc event
- * @name angular.module.ng.$compileProvider.directive.ng:view#$viewContentLoaded
- * @eventOf angular.module.ng.$compileProvider.directive.ng:view
- * @eventType emit on the current ng:view scope
+ * @name angular.module.ng.$compileProvider.directive.ng-view#$viewContentLoaded
+ * @eventOf angular.module.ng.$compileProvider.directive.ng-view
+ * @eventType emit on the current ng-view scope
* @description
- * Emitted every time the ng:view content is reloaded.
+ * Emitted every time the ng-view content is reloaded.
*/
var ngViewDirective = ['$http', '$templateCache', '$route', '$anchorScroll', '$compile',
'$controller',
--
cgit v1.2.3