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/service/compiler.js | 6 +++--- src/service/filter/filter.js | 14 +++++++------- src/service/filter/filters.js | 26 +++++++++++++------------- src/service/filter/limitTo.js | 6 +++--- src/service/filter/orderBy.js | 14 +++++++------- src/service/http.js | 14 +++++++------- src/service/location.js | 2 +- src/service/log.js | 12 ++++++------ src/service/resource.js | 12 ++++++------ src/service/route.js | 18 +++++++++--------- src/service/sanitize.js | 16 ++++++++-------- src/service/scope.js | 4 ++-- src/service/window.js | 4 ++-- 13 files changed, 74 insertions(+), 74 deletions(-) (limited to 'src/service') diff --git a/src/service/compiler.js b/src/service/compiler.js index 42c694ff..5fb9035d 100644 --- a/src/service/compiler.js +++ b/src/service/compiler.js @@ -15,7 +15,7 @@ * instance functions into a single template function which is then returned. * * The template function can then be used once to produce the view or as it is the case with - * {@link angular.module.ng.$compileProvider.directive.ng:repeat repeater} many-times, in which + * {@link angular.module.ng.$compileProvider.directive.ng-repeat repeater} many-times, in which * case each call results in a view that is a DOM clone of the original template. * @@ -55,8 +55,8 @@ }
-
-
+
+
diff --git a/src/service/filter/filter.js b/src/service/filter/filter.js index 49960546..9a62b484 100644 --- a/src/service/filter/filter.js +++ b/src/service/filter/filter.js @@ -35,27 +35,27 @@ * @example -
- Search: + Search: - +
NamePhone
{{friend.name}} {{friend.phone}}

- Any:
- Name only
- Phone only
+ Any:
+ Name only
+ Phone only
- + diff --git a/src/service/filter/filters.js b/src/service/filter/filters.js index 58a3a869..2b1fe533 100644 --- a/src/service/filter/filters.js +++ b/src/service/filter/filters.js @@ -22,8 +22,8 @@ $scope.amount = 1234.56; } -
-
+
+
default currency symbol ($): {{amount | currency}}
custom currency identifier (USD$): {{amount | currency:"USD$"}}
@@ -73,8 +73,8 @@ function currencyFilter($locale) { $scope.val = 1234.56789; } -
- Enter number:
+
+ Enter number:
Default formatting: {{val | number}}
No fractions: {{val | number:0}}
Negative number: {{-val | number:4}} @@ -296,11 +296,11 @@ var DATE_FORMATS_SPLIT = /((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+ * @example - {{1288323623006 | date:'medium'}}: + {{1288323623006 | date:'medium'}}: {{1288323623006 | date:'medium'}}
- {{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}: + {{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}: {{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}
- {{1288323623006 | date:'MM/dd/yyyy @ h:mma'}}: + {{1288323623006 | date:'MM/dd/yyyy @ h:mma'}}: {{'1288323623006' | date:'MM/dd/yyyy @ h:mma'}}
@@ -445,8 +445,8 @@ var uppercaseFilter = valueFn(uppercase); 'and one more: ftp://127.0.0.1/.'; } -
- Snippet: +
+ Snippet:
NamePhone
{{friend.name}} {{friend.phone}}
@@ -456,16 +456,16 @@ var uppercaseFilter = valueFn(uppercase); - - + +
Filter
linky filter -
<div ng:bind-html="snippet | linky">
</div>
+
<div ng-bind-html="snippet | linky">
</div>
-
+
no filter
<div ng:bind="snippet">
</div>
<div ng-bind="snippet">
</div>
diff --git a/src/service/filter/limitTo.js b/src/service/filter/limitTo.js index eb97fdad..032a8d61 100644 --- a/src/service/filter/limitTo.js +++ b/src/service/filter/limitTo.js @@ -30,14 +30,14 @@ $scope.limit = 3; } -
- Limit {{numbers}} to: +
+ Limit {{numbers}} to:

Output: {{ numbers | limitTo:limit | json }}

it('should limit the numer array to first three items', function() { - expect(element('.doc-example-live input[ng\\:model=limit]').val()).toBe('3'); + expect(element('.doc-example-live input[ng-model=limit]').val()).toBe('3'); expect(binding('numbers | limitTo:limit | json')).toEqual('[1,2,3]'); }); diff --git a/src/service/filter/orderBy.js b/src/service/filter/orderBy.js index e7528a4b..3f4fe395 100644 --- a/src/service/filter/orderBy.js +++ b/src/service/filter/orderBy.js @@ -42,18 +42,18 @@ $scope.predicate = '-age'; } -
+
Sorting predicate = {{predicate}}; reverse = {{reverse}}

- [ unsorted ] + [ unsorted ] - - - + + + - + diff --git a/src/service/http.js b/src/service/http.js index afaae2de..5dd87d76 100644 --- a/src/service/http.js +++ b/src/service/http.js @@ -420,16 +420,16 @@ function $HttpProvider() { }; } -
- - -
- - - + +
+ + +
http status code: {{status}}
http response data: {{data}}
diff --git a/src/service/location.js b/src/service/location.js index 43e6ce52..a7ff103b 100644 --- a/src/service/location.js +++ b/src/service/location.js @@ -501,7 +501,7 @@ function $LocationProvider(){ } var href = elm.attr('href'); - if (!href || isDefined(elm.attr('ng:ext-link')) || elm.attr('target')) return; + if (!href || isDefined(elm.attr('ng-ext-link')) || elm.attr('target')) return; // remove same domain from full url links (IE7 always returns full hrefs) href = href.replace(absUrlPrefix, ''); diff --git a/src/service/log.js b/src/service/log.js index d6566140..76413618 100644 --- a/src/service/log.js +++ b/src/service/log.js @@ -20,14 +20,14 @@ this.message = 'Hello World!'; } -
+

Reload this page with open console, enter text and hit the log button...

Message: - - - - - + + + + +
diff --git a/src/service/resource.js b/src/service/resource.js index d2b722c2..790d5ed6 100644 --- a/src/service/resource.js +++ b/src/service/resource.js @@ -178,18 +178,18 @@ BuzzController.$inject = ['$resource']; -
- - +
+ +
-
+

{{item.actor.name}} - Expand replies: {{item.links.replies[0].count}} + Expand replies: {{item.links.replies[0].count}}

{{item.object.content | html}} -
+
{{reply.actor.name}}: {{reply.content | html}}
diff --git a/src/service/route.js b/src/service/route.js index 3b135e65..3e9cbb41 100644 --- a/src/service/route.js +++ b/src/service/route.js @@ -27,8 +27,8 @@ function $RouteProvider(){ * - `controller` – `{function()=}` – Controller fn that should be associated with newly * created scope. * - `template` – `{string=}` – path to an html template that should be used by - * {@link angular.module.ng.$compileProvider.directive.ng:view ng:view} or - * {@link angular.module.ng.$compileProvider.directive.ng:include ng:include} widgets. + * {@link angular.module.ng.$compileProvider.directive.ng-view ng-view} or + * {@link angular.module.ng.$compileProvider.directive.ng-include ng-include} widgets. * - `redirectTo` – {(string|function())=} – value to update * {@link angular.module.ng.$location $location} path with and trigger route redirection. * @@ -94,12 +94,12 @@ function $RouteProvider(){ * * You can define routes through {@link angular.module.ng.$routeProvider $routeProvider}'s API. * - * The `$route` service is typically used in conjunction with {@link angular.module.ng.$compileProvider.directive.ng:view ng:view} + * The `$route` service is typically used in conjunction with {@link angular.module.ng.$compileProvider.directive.ng-view ng-view} * directive and the {@link angular.module.ng.$routeParams $routeParams} service. * * @example This example shows how changing the URL hash causes the `$route` to match a route against the - URL, and the `ng:view` pulls in the partial. + URL, and the `ng-view` pulls in the partial. Note that this example is using {@link angular.module.ng.$compileProvide.directive.script inlined templates} to get it working on jsfiddle as well. @@ -143,7 +143,7 @@ function $RouteProvider(){ } -
+
Choose: Moby | Moby: Ch1 | @@ -151,7 +151,7 @@ function $RouteProvider(){ Gatsby: Ch4 | Scarlet Letter
- +

$location.path() = {{$location.path()}}
@@ -164,13 +164,13 @@ function $RouteProvider(){ 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/); }); @@ -228,7 +228,7 @@ function $RouteProvider(){ * Causes `$route` service to reload the current route even if * {@link angular.module.ng.$location $location} hasn't changed. * - * As a result of that, {@link angular.module.ng.$compileProvider.directive.ng:view ng:view} + * As a result of that, {@link angular.module.ng.$compileProvider.directive.ng-view ng-view} * creates new scope, reinstantiates the controller. */ reload: function() { diff --git a/src/service/sanitize.js b/src/service/sanitize.js index 1446487c..7ca0711a 100644 --- a/src/service/sanitize.js +++ b/src/service/sanitize.js @@ -44,8 +44,8 @@ 'snippet

'; } -
- Snippet: +
+ Snippet:
Name - (^)Phone NumberAgeName + (^)Phone NumberAge
{{friend.name}} {{friend.phone}} {{friend.age}}
@@ -55,21 +55,21 @@ - - + + - - + +
Filter
html filter -
<div ng:bind-html="snippet">
</div>
+
<div ng-bind-html="snippet">
</div>
-
+
no filter
<div ng:bind="snippet">
</div>
<div ng-bind="snippet">
</div>
unsafe html filter
<div ng:bind-html-unsafe="snippet">
</div>
<div ng-bind-html-unsafe="snippet">
</div>
diff --git a/src/service/scope.js b/src/service/scope.js index d5646008..24313620 100644 --- a/src/service/scope.js +++ b/src/service/scope.js @@ -329,7 +329,7 @@ function $RootScopeProvider(){ * `'Maximum iteration limit exceeded.'` if the number of iterations exceeds 100. * * Usually you don't call `$digest()` directly in - * {@link angular.module.ng.$compileProvider.directive.ng:controller controllers} or in + * {@link angular.module.ng.$compileProvider.directive.ng-controller controllers} or in * {@link angular.module.ng.$compileProvider.directive directives}. * Instead a call to {@link angular.module.ng.$rootScope.Scope#$apply $apply()} (typically from within a * {@link angular.module.ng.$compileProvider.directive directives}) will force a `$digest()`. @@ -453,7 +453,7 @@ function $RootScopeProvider(){ * The destructing scope emits an `$destroy` {@link angular.module.ng.$rootScope.Scope#$emit event}. * * The `$destroy()` is usually used by directives such as - * {@link angular.module.ng.$compileProvider.directive.ng:repeat ng:repeat} for managing the unrolling of the loop. + * {@link angular.module.ng.$compileProvider.directive.ng-repeat ng-repeat} for managing the unrolling of the loop. * */ $destroy: function() { diff --git a/src/service/window.js b/src/service/window.js index 7bb3dfca..d7adea03 100644 --- a/src/service/window.js +++ b/src/service/window.js @@ -16,8 +16,8 @@ * @example - - + + -- cgit v1.2.3