From 90551f00c5bc9a1b2c5a4a112a2db7d17dcb866f Mon Sep 17 00:00:00 2001 From: Chris Barr Date: Thu, 30 Jul 2015 13:44:45 -0400 Subject: [PATCH] Updating tests --- angular-ui-router/angular-ui-router-tests.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/angular-ui-router/angular-ui-router-tests.ts b/angular-ui-router/angular-ui-router-tests.ts index a43f9e9bc..6dae1c085 100644 --- a/angular-ui-router/angular-ui-router-tests.ts +++ b/angular-ui-router/angular-ui-router-tests.ts @@ -50,7 +50,7 @@ myApp.config(( .state('state1.list', { url: "/list", templateUrl: "partials/state1.list.html", - controller: function ($scope: MyAppScope) { + controller: function ($scope: MyAppScope) { $scope.items = ["A", "List", "Of", "Items"]; } }) @@ -61,7 +61,7 @@ myApp.config(( .state('state2.list', { url: "/list", templateUrl: "partials/state2.list.html", - controller: function ($scope: MyAppScope) { + controller: function ($scope: MyAppScope) { $scope.things = ["A", "Set", "Of", "Things"]; } }) @@ -70,7 +70,14 @@ myApp.config(( url: "/list", templateUrl: "partials/state3.list.html", controller: function ($scope: MyAppScope) { - $scope.things = ["A", "Set", "Of", "Things"]; + $scope.things = ["A", "Set", "Of", "Things"]; + } + }) + .state('state4', { + url: "/state4", + templateUrl: function($stateParams: ng.ui.IStateParamsService){ + //Logic could go here based on $stateParams + return "partials/state4.html"; } }) .state('index', {