moved Angular routes to separate module; load Webpack bundle before other main scripts

This commit is contained in:
alecmerdler 2017-01-20 16:24:55 -08:00
parent 8dc9cf21d7
commit 615e233671
14 changed files with 186 additions and 167 deletions

View file

@ -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});