Revert "feat(router): add reuse support for angular 1.x router"

This reverts commit ddb62feae6.
This commit is contained in:
Victor Berchet
2015-08-20 08:06:07 -07:00
parent ddb62feae6
commit cef51a7e0d
3 changed files with 5 additions and 89 deletions

View File

@ -1,5 +1,3 @@
'use strict';
var fs = require('fs');
var ts = require('typescript');
@ -60,10 +58,6 @@ function main() {
"});",
"}));",
"}",
"if (constructor.$routeConfig) {",
"constructor.annotations = constructor.annotations || [];",
"constructor.annotations.push(new angular.annotations.RouteConfig(constructor.$routeConfig));",
"}",
"if (constructor.annotations) {",
"constructor.annotations.forEach(function(annotation) {",
"if (annotation instanceof RouteConfig) {",
@ -76,11 +70,7 @@ function main() {
"});",
"var router = new RootRouter(registry, undefined, location, new Object());",
"$rootScope.$watch(function () { return $location.path(); }, function (path) {",
"if (router.lastNavigationAttempt !== path) {",
"router.navigate(path);",
"}",
"});",
"$rootScope.$watch(function () { return $location.path(); }, function (path) { router.navigate(path); });",
"return router;"
].join('\n'));