Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eugene Shen
todomvc
Commits
b7c67662
Commit
b7c67662
authored
Nov 19, 2014
by
Pascal Hartig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AngularJS: Upgrade to 1.3.3
parent
ee41126f
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
314 additions
and
271 deletions
+314
-271
examples/angularjs/bower.json
examples/angularjs/bower.json
+3
-3
examples/angularjs/bower_components/angular-route/angular-route.js
...angularjs/bower_components/angular-route/angular-route.js
+19
-5
examples/angularjs/bower_components/angular/angular.js
examples/angularjs/bower_components/angular/angular.js
+292
-263
No files found.
examples/angularjs/bower.json
View file @
b7c67662
...
@@ -2,11 +2,11 @@
...
@@ -2,11 +2,11 @@
"name"
:
"todomvc-angular"
,
"name"
:
"todomvc-angular"
,
"version"
:
"0.0.0"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"dependencies"
:
{
"angular"
:
"1.3.
2
"
,
"angular"
:
"1.3.
3
"
,
"todomvc-common"
:
"~0.3.0"
"todomvc-common"
:
"~0.3.0"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"angular-mocks"
:
"1.3.
2
"
,
"angular-mocks"
:
"1.3.
3
"
,
"angular-route"
:
"1.3.
2
"
"angular-route"
:
"1.3.
3
"
}
}
}
}
examples/angularjs/bower_components/angular-route/angular-route.js
View file @
b7c67662
/**
/**
* @license AngularJS v1.3.
2
* @license AngularJS v1.3.
3
* (c) 2010-2014 Google, Inc. http://angularjs.org
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
* License: MIT
*/
*/
...
@@ -151,6 +151,9 @@ function $RouteProvider() {
...
@@ -151,6 +151,9 @@ function $RouteProvider() {
if
(
angular
.
isUndefined
(
routeCopy
.
reloadOnSearch
))
{
if
(
angular
.
isUndefined
(
routeCopy
.
reloadOnSearch
))
{
routeCopy
.
reloadOnSearch
=
true
;
routeCopy
.
reloadOnSearch
=
true
;
}
}
if
(
angular
.
isUndefined
(
routeCopy
.
caseInsensitiveMatch
))
{
routeCopy
.
caseInsensitiveMatch
=
this
.
caseInsensitiveMatch
;
}
routes
[
path
]
=
angular
.
extend
(
routes
[
path
]
=
angular
.
extend
(
routeCopy
,
routeCopy
,
path
&&
pathRegExp
(
path
,
routeCopy
)
path
&&
pathRegExp
(
path
,
routeCopy
)
...
@@ -158,9 +161,9 @@ function $RouteProvider() {
...
@@ -158,9 +161,9 @@ function $RouteProvider() {
// create redirection for trailing slashes
// create redirection for trailing slashes
if
(
path
)
{
if
(
path
)
{
var
redirectPath
=
(
path
[
path
.
length
-
1
]
==
'
/
'
)
var
redirectPath
=
(
path
[
path
.
length
-
1
]
==
'
/
'
)
?
path
.
substr
(
0
,
path
.
length
-
1
)
?
path
.
substr
(
0
,
path
.
length
-
1
)
:
path
+
'
/
'
;
:
path
+
'
/
'
;
routes
[
redirectPath
]
=
angular
.
extend
(
routes
[
redirectPath
]
=
angular
.
extend
(
{
redirectTo
:
path
},
{
redirectTo
:
path
},
...
@@ -171,6 +174,17 @@ function $RouteProvider() {
...
@@ -171,6 +174,17 @@ function $RouteProvider() {
return
this
;
return
this
;
};
};
/**
* @ngdoc property
* @name $routeProvider#caseInsensitiveMatch
* @description
*
* A boolean property indicating if routes defined
* using this provider should be matched using a case sensitive
* algorithm. Defaults to `false`.
*/
this
.
caseInsensitiveMatch
=
false
;
/**
/**
* @param path {string} path
* @param path {string} path
* @param opts {Object} options
* @param opts {Object} options
...
@@ -639,7 +653,7 @@ function $RouteProvider() {
...
@@ -639,7 +653,7 @@ function $RouteProvider() {
*/
*/
function
interpolate
(
string
,
params
)
{
function
interpolate
(
string
,
params
)
{
var
result
=
[];
var
result
=
[];
angular
.
forEach
((
string
||
''
).
split
(
'
:
'
),
function
(
segment
,
i
)
{
angular
.
forEach
((
string
||
''
).
split
(
'
:
'
),
function
(
segment
,
i
)
{
if
(
i
===
0
)
{
if
(
i
===
0
)
{
result
.
push
(
segment
);
result
.
push
(
segment
);
}
else
{
}
else
{
...
...
examples/angularjs/bower_components/angular/angular.js
View file @
b7c67662
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment