moved Angular routes to separate module; load Webpack bundle before other main scripts
This commit is contained in:
		
							parent
							
								
									8dc9cf21d7
								
							
						
					
					
						commit
						615e233671
					
				
					 14 changed files with 186 additions and 167 deletions
				
			
		|  | @ -12,8 +12,8 @@ angular.module('quay').directive('createRobotDialog', function () { | |||
|       'info': '=info', | ||||
|       'robotCreated': '&robotCreated' | ||||
|     }, | ||||
|     controller: function($scope, $element, ApiService, UserService, namePatterns) { | ||||
|       $scope.ROBOT_PATTERN = namePatterns.ROBOT_PATTERN; | ||||
|     controller: function($scope, $element, ApiService, UserService, NAME_PATTERNS) { | ||||
|       $scope.ROBOT_PATTERN = NAME_PATTERNS.ROBOT_PATTERN; | ||||
| 
 | ||||
|       $scope.robotFinished = function(robot) { | ||||
|         $scope.robotCreated({'robot': robot}); | ||||
|  |  | |||
|  | @ -12,8 +12,8 @@ angular.module('quay').directive('createTeamDialog', function () { | |||
|       'info': '=info', | ||||
|       'teamCreated': '&teamCreated' | ||||
|     }, | ||||
|     controller: function($scope, $element, ApiService, UserService, namePatterns) { | ||||
|       $scope.TEAM_PATTERN = namePatterns.TEAM_PATTERN; | ||||
|     controller: function($scope, $element, ApiService, UserService, NAME_PATTERNS) { | ||||
|       $scope.TEAM_PATTERN = NAME_PATTERNS.TEAM_PATTERN; | ||||
| 
 | ||||
|       $scope.teamFinished = function(team) { | ||||
|         $scope.teamCreated({'team': team}); | ||||
|  |  | |||
|  | @ -15,9 +15,9 @@ angular.module('quay').directive('namespaceInput', function () { | |||
| 
 | ||||
|       'namespaceTitle': '@namespaceTitle', | ||||
|     }, | ||||
|     controller: function($scope, $element, namePatterns) { | ||||
|       $scope.USERNAME_PATTERN = namePatterns.USERNAME_PATTERN; | ||||
|       $scope.usernamePattern = new RegExp(namePatterns.USERNAME_PATTERN); | ||||
|     controller: function($scope, $element, NAME_PATTERNS) { | ||||
|       $scope.USERNAME_PATTERN = NAME_PATTERNS.USERNAME_PATTERN; | ||||
|       $scope.usernamePattern = new RegExp(NAME_PATTERNS.USERNAME_PATTERN); | ||||
| 
 | ||||
|       $scope.$watch('binding', function(binding) { | ||||
|         if (!binding) { | ||||
|  |  | |||
		Reference in a new issue