Commit c947f59e authored by Sam Saccone's avatar Sam Saccone

🎯 Update angular version

parent 2de650d1
/** /**
* @license AngularJS v1.3.12 * @license AngularJS v1.4.1
* (c) 2010-2014 Google, Inc. http://angularjs.org * (c) 2010-2015 Google, Inc. http://angularjs.org
* License: MIT * License: MIT
*/ */
(function(window, angular, undefined) {'use strict'; (function(window, angular, undefined) {'use strict';
...@@ -78,8 +78,8 @@ function $RouteProvider() { ...@@ -78,8 +78,8 @@ function $RouteProvider() {
* - `controller` – `{(string|function()=}` – Controller fn that should be associated with * - `controller` – `{(string|function()=}` – Controller fn that should be associated with
* newly created scope or the name of a {@link angular.Module#controller registered * newly created scope or the name of a {@link angular.Module#controller registered
* controller} if passed as a string. * controller} if passed as a string.
* - `controllerAs` – `{string=}` – A controller alias name. If present the controller will be * - `controllerAs` – `{string=}` – An identifier name for a reference to the controller.
* published to scope under the `controllerAs` name. * If present, the controller will be published to scope under the `controllerAs` name.
* - `template` – `{string=|function()=}` – html template as a string or a function that * - `template` – `{string=|function()=}` – html template as a string or a function that
* returns an html template as a string which should be used by {@link * returns an html template as a string which should be used by {@link
* ngRoute.directive:ngView ngView} or {@link ng.directive:ngInclude ngInclude} directives. * ngRoute.directive:ngView ngView} or {@link ng.directive:ngInclude ngInclude} directives.
...@@ -440,9 +440,11 @@ function $RouteProvider() { ...@@ -440,9 +440,11 @@ function $RouteProvider() {
* @name $route#$routeUpdate * @name $route#$routeUpdate
* @eventType broadcast on root scope * @eventType broadcast on root scope
* @description * @description
*
* The `reloadOnSearch` property has been set to false, and we are reusing the same * The `reloadOnSearch` property has been set to false, and we are reusing the same
* instance of the Controller. * instance of the Controller.
*
* @param {Object} angularEvent Synthetic event object
* @param {Route} current Current/previous route information.
*/ */
var forceReload = false, var forceReload = false,
...@@ -606,8 +608,8 @@ function $RouteProvider() { ...@@ -606,8 +608,8 @@ function $RouteProvider() {
return $q.all(locals); return $q.all(locals);
} }
}). }).
// after route change
then(function(locals) { then(function(locals) {
// after route change
if (nextRoute == $route.current) { if (nextRoute == $route.current) {
if (nextRoute) { if (nextRoute) {
nextRoute.locals = locals; nextRoute.locals = locals;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"test": "karma start test/config/karma.conf.js" "test": "karma start test/config/karma.conf.js"
}, },
"dependencies": { "dependencies": {
"angular": "^1.3.12", "angular": "^1.4.1",
"todomvc-common": "^1.0.0", "todomvc-common": "^1.0.0",
"todomvc-app-css": "^1.0.1", "todomvc-app-css": "^1.0.1",
"angular-route": "^1.3.12" "angular-route": "^1.3.12"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment