From: gustavo Date: Fri, 1 Apr 2016 00:51:57 +0000 (+0200) Subject: AngularJS, STOMP client. X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=1c7da8e969b4d6da4a16f7f18b6ec389eaf1effd;p=JavaScriptForFun AngularJS, STOMP client. --- diff --git a/angularjs/stomp/karma.conf.js b/angularjs/stomp/karma.conf.js index 15ca427..045f1f4 100644 --- a/angularjs/stomp/karma.conf.js +++ b/angularjs/stomp/karma.conf.js @@ -30,6 +30,8 @@ module.exports = function(config) { 'bower_components/angular-bootstrap/ui-bootstrap-tpls.js', 'bower_components/angular-translate/angular-translate.js', 'bower_components/angular-ui-router/release/angular-ui-router.js', + 'bower_components/sockjs/sockjs.js', + 'bower_components/stomp-websocket/lib/stomp.min.js', 'bower_components/angular-mocks/angular-mocks.js', 'bower_components/marked/lib/marked.js', //endbower diff --git a/angularjs/stomp/src/stomp/app/app.module.js b/angularjs/stomp/src/stomp/app/app.module.js index cb17c0b..d89cc71 100644 --- a/angularjs/stomp/src/stomp/app/app.module.js +++ b/angularjs/stomp/src/stomp/app/app.module.js @@ -7,8 +7,7 @@ * @name app * * @requires app.core - * @requires app.welcome - * @requires app.cars + * @requires app.users * * @description * # app @@ -21,7 +20,7 @@ 'app.core', /* Feature areas */ - 'app.users' + 'app.example' ]); }()); diff --git a/angularjs/stomp/src/stomp/app/example/example.controller.js b/angularjs/stomp/src/stomp/app/example/example.controller.js new file mode 100644 index 0000000..79929cb --- /dev/null +++ b/angularjs/stomp/src/stomp/app/example/example.controller.js @@ -0,0 +1,44 @@ +(function () { + 'use strict'; + + angular + .module('app.users') + .controller('ExampleController', ExampleController); + + /** + * @ngdoc controller + * @name app.example.controller:ExampleController + * + * @requires $rootScope + * @requires $scope + * + *

+ *
+ * {@link https://docs.angularjs.org/api/ng/service/$rootScope $rootScope} + * {@link https://docs.angularjs.org/api/ng/type/$rootScope.Scope $scope} + *

+ * + * @description + * ExampleController controller. + */ + /* @ngInject */ + function ExampleController() { + var vm = this; + + vm.connectHeaders = {}; + vm.clientDestination = {}; + vm.serverDestination = {}; + vm.payload = {}; + vm.headers = {}; + + vm.connect = function () { + }; + + vm.subscribe = function () { + }; + + vm.send = function () { + }; + } + +})(); diff --git a/angularjs/stomp/src/stomp/app/example/example.html b/angularjs/stomp/src/stomp/app/example/example.html new file mode 100644 index 0000000..ea77b29 --- /dev/null +++ b/angularjs/stomp/src/stomp/app/example/example.html @@ -0,0 +1,67 @@ + + + + + + STOMP-Example + + + + + + + + + + diff --git a/angularjs/stomp/src/stomp/app/example/example.module.js b/angularjs/stomp/src/stomp/app/example/example.module.js new file mode 100644 index 0000000..e5a44f7 --- /dev/null +++ b/angularjs/stomp/src/stomp/app/example/example.module.js @@ -0,0 +1,20 @@ +(function() { + 'use strict'; + + /** + * @ngdoc overview + * @name app.example + * + * @requires app.core + * + * @description + * # app.example + * + * ## Module STOMP example. + * STOMP example + */ + angular.module('app.example', [ + 'app.core' + ]); + +})(); diff --git a/angularjs/stomp/src/stomp/app/example/example.route.js b/angularjs/stomp/src/stomp/app/example/example.route.js new file mode 100644 index 0000000..ff592d7 --- /dev/null +++ b/angularjs/stomp/src/stomp/app/example/example.route.js @@ -0,0 +1,37 @@ +(function() { + 'use strict'; + + angular + .module('app.example') + .config(route); + + /** + * @ngdoc service + * @name app.example.route + * + * @requires $stateProvider + * @requires $urlRouterProvider + * + *

+ *
+ * {@link http://angular-ui.github.io/ui-router/site/#/api/ui.router.state.$stateProvider $stateProvider}
+ * {@link http://angular-ui.github.io/ui-router/site/#/api/ui.router.router.$urlRouterProvider $urlRouterProvider} + *

+ * + * + * @description + * Router configuration for example application. + */ + /* @ngInject */ + function route($stateProvider, $urlRouterProvider) { + var state = 'example'; + var config = { + abstract: false, + url: '/example', + templateUrl: 'app/example/example.html' + }; + + $urlRouterProvider.otherwise(state); + $stateProvider.state(state, config); + } +}()); diff --git a/angularjs/stomp/src/stomp/app/example/example.route.spec.js b/angularjs/stomp/src/stomp/app/example/example.route.spec.js new file mode 100644 index 0000000..4da117f --- /dev/null +++ b/angularjs/stomp/src/stomp/app/example/example.route.spec.js @@ -0,0 +1,24 @@ +describe('app.example', function() { + 'use strict'; + + describe('state', function() { + var view = { + example: 'app/example/example.html' + }; + var $state; + + beforeEach(function() { + module('app.example'); + + inject(function(_$state_) { + $state = _$state_; + }); + }); + + it('should map /example route to users View template', function() { + expect($state.get('example').templateUrl).toEqual(view.example); + }); + + }); + +}); diff --git a/angularjs/stomp/src/stomp/app/users/users-child.controller.js b/angularjs/stomp/src/stomp/app/users/users-child.controller.js deleted file mode 100644 index bb1836c..0000000 --- a/angularjs/stomp/src/stomp/app/users/users-child.controller.js +++ /dev/null @@ -1,78 +0,0 @@ -(function () { - 'use strict'; - - angular - .module('app.users') - .controller('UsersChildController', UsersChildController); - - /** - * @ngdoc controller - * @name app.users.controller:UsersChildController - * - * @requires $rootScope - * @requires $scope - * - *

- *
- * {@link https://docs.angularjs.org/api/ng/service/$rootScope $rootScope} - * {@link https://docs.angularjs.org/api/ng/type/$rootScope.Scope $scope} - *

- * - * @description - * UsersChildController controller. - */ - /* @ngInject */ - function UsersChildController($rootScope, $scope, USERS) { - var vm = this; - - var emitFact = { - title: 'Snake and Scarlett', - fact: 'it is canon' - }; - var scopeBroadcastToSecondChild = { - name: 'UsersChild To UsersSecondChild', - lastName: 'scope broadcasting to UsersSecondChild from UserChild', - city: 'UserChild' - }; - var rootScopeBroadcastToSecondChild = { - name: 'UsersChild To UsersSecondChild', - lastName: 'rootscope broadcasting to UsersSecondChild from UserChild', - city: 'UserChild' - }; - - // This is the right way for accessing to a parent controller from a child one when using the "Controller as" way. - // Problem: we need to name our controllers with something different to the "vm standard", otherwise - // here we wouldn't be able to access to the parent controller because it would have the same name as our child - // controller (vm). So, we need different names for parent and child controllers. - vm.valueForChildControllers = $scope.usersController.toBeCalledFromChildControllers(); - - vm.getEmit = function () { - $scope.$emit(USERS.SCOPE.EMIT_FACT, emitFact); - }; - vm.broadcastToSencondChild = function () { - // $scope.$broadcast will never be seen by controllers in the same level as this controller. :( - $scope.$broadcast(USERS.SCOPE.BROADCAST_TO_SENCONDCHILD, scopeBroadcastToSecondChild); - // The only way is either using $rootScope or creating a new controllers hierarchy where - // UsersSecondChildController would be in a lower level than UsersChildController. - $rootScope.$broadcast(USERS.ROOTSCOPE.BROADCAST_TO_SENCONDCHILD, rootScopeBroadcastToSecondChild); - }; - vm.usersChildOnScopeBroadcast = function (events, broadcastUser) { - vm.broadcastUser = broadcastUser; - console.log('usersChildOnScopeBroadcast, events.name: ' + events.name); - }; - - // NEVER USE $rootScope.$on IN CONTROLLER BECAUSE IT IS NOT DESTROYED EVEN IF CONTROLLER WAS DESTROYED!!! - // YOU WILL END UP HAVING AS MANY EVENT LISTENERS AS TIMES THIS CONTROLLER IS CREATED!!!! - // $rootScope.$on(USERS.ROOTSCOPE.BROADCAST, usersChildOnRootBroadcast); - - // LISTENING FOR EVENTS IN $scope IS THE RIGHT THING BECAUSE THESE EVENT LISTENERS ARE DESTROYED - // AT THE SAME TIME AS THIS CONTROLLER :) - $scope.$on(USERS.ROOTSCOPE.BROADCAST, vm.usersChildOnScopeBroadcast); - - // function usersChildOnRootBroadcast(events, broadcastUser) { - // vm.broadcastUser = broadcastUser; - // console.log('usersChildOnRootBroadcast, events.name: ' + events.name); - // } - - } -})(); diff --git a/angularjs/stomp/src/stomp/app/users/users-child.controller.spec.js b/angularjs/stomp/src/stomp/app/users/users-child.controller.spec.js deleted file mode 100644 index 2b5faeb..0000000 --- a/angularjs/stomp/src/stomp/app/users/users-child.controller.spec.js +++ /dev/null @@ -1,97 +0,0 @@ -describe('app.users', function() { - 'use strict'; - - var valueForChildControllers = { - variable: 'This is a variable from UsersController', - value: 'Hello child controller' - }; - var usersController = { - toBeCalledFromChildControllers: function() { - return valueForChildControllers; - } - }; - var $rootScope; - var $scope; - var USERS; - var UsersChildController; - - beforeEach(function() { - module('app.users'); - - inject(function($controller, _$rootScope_, _USERS_) { - $rootScope = _$rootScope_; - USERS = _USERS_; - $scope = $rootScope.$new(); - - $scope.usersController = usersController; - spyOn($scope, '$emit'); - spyOn($rootScope, '$broadcast'); - jasmine.createSpy($scope, '$scope.$broadcast'); - spyOn($scope.usersController, 'toBeCalledFromChildControllers') - .and.callThrough(); - UsersChildController = $controller('UsersChildController', { - $rootScope: $rootScope, - $scope: $scope, - USERS: _USERS_ - }); - }); - }); - - describe('UsersChildController', function () { - - it('should be created successfully', function () { - expect(UsersChildController).toBeDefined(); - - expect($scope.usersController.toBeCalledFromChildControllers).toHaveBeenCalled(); - expect(UsersChildController.valueForChildControllers).toEqual(valueForChildControllers); - }); - - it('should be called $scope.$emit', function () { - var emitFact = { - title: 'Snake and Scarlett', - fact: 'it is canon' - }; - - UsersChildController.getEmit(); - - expect($scope.$emit).toHaveBeenCalledWith(USERS.SCOPE.EMIT_FACT, emitFact); - }); - - it('should be assigned broadcastUser', function () { - var rootScopeBroadcastUser = { - name: 'Snake', - lastName: 'Eyes', - city: 'classified' - }; - var event = { - name: USERS.ROOTSCOPE.BROADCAST - }; - - UsersChildController.usersChildOnScopeBroadcast(event, rootScopeBroadcastUser); - - expect(UsersChildController.broadcastUser).toEqual(rootScopeBroadcastUser); - }); - - it('should be called $rootScope.$broadcast', function () { - var scopeBroadcastToSecondChild = { - name: 'UsersChild To UsersSecondChild', - lastName: 'scope broadcasting to UsersSecondChild from UserChild', - city: 'UserChild' - }; - var rootScopeBroadcastToSecondChild = { - name: 'UsersChild To UsersSecondChild', - lastName: 'rootscope broadcasting to UsersSecondChild from UserChild', - city: 'UserChild' - }; - - UsersChildController.broadcastToSencondChild(); - - expect($rootScope.$broadcast).toHaveBeenCalledWith( - USERS.ROOTSCOPE.BROADCAST_TO_SENCONDCHILD, rootScopeBroadcastToSecondChild); - expect($scope.$broadcast).toHaveBeenCalledWith( - USERS.SCOPE.BROADCAST_TO_SENCONDCHILD, scopeBroadcastToSecondChild); - }); - - }); - -}); diff --git a/angularjs/stomp/src/stomp/app/users/users-second-child.controller.js b/angularjs/stomp/src/stomp/app/users/users-second-child.controller.js deleted file mode 100644 index c4bb43d..0000000 --- a/angularjs/stomp/src/stomp/app/users/users-second-child.controller.js +++ /dev/null @@ -1,42 +0,0 @@ -(function () { - 'use strict'; - - angular - .module('app.users') - .controller('UsersSecondChildController', UsersSecondChildController); - - /** - * @ngdoc controller - * @name app.users.controller:UsersSecondChildController - * - * @requires $scope - * - *

- *
- * {@link https://docs.angularjs.org/api/ng/type/$rootScope.Scope $scope} - *

- * - * @description - * UsersSecondChildController controller. - */ - /* @ngInject */ - function UsersSecondChildController($scope, USERS) { - var vm = this; - - vm.usersSecondChildOnRootScopeBroadcast = function (events, rootScopeBroadcastUser) { - vm.rootScopeBroadcastUser = rootScopeBroadcastUser; - console.log('usersSecondChildOnRootScopeBroadcast, events.name: ' + events.name); - }; - vm.usersSecondChildOnScopeBroadcast = function (events, scopeBroadcastUser) { - vm.scopeBroadcastUser = scopeBroadcastUser; - // You will never see this message because listening for $scope.$broadcast sent by - // controllers in the same level does not work. - console.log('usersSecondChildOnScopeBroadcast, events.name: ' + events.name); - }; - - $scope.$on(USERS.ROOTSCOPE.BROADCAST_TO_SENCONDCHILD, vm.usersSecondChildOnRootScopeBroadcast); - - $scope.$on(USERS.SCOPE.BROADCAST_TO_SENCONDCHILD, vm.usersSecondChildOnScopeBroadcast); - - } -})(); diff --git a/angularjs/stomp/src/stomp/app/users/users-second-child.controller.spec.js b/angularjs/stomp/src/stomp/app/users/users-second-child.controller.spec.js deleted file mode 100644 index 0b6f18d..0000000 --- a/angularjs/stomp/src/stomp/app/users/users-second-child.controller.spec.js +++ /dev/null @@ -1,63 +0,0 @@ -describe('app.users', function() { - 'use strict'; - - var $rootScope; - var $scope; - var USERS; - var UsersSecondChildController; - - beforeEach(function() { - module('app.users'); - - inject(function($controller, _$rootScope_, _USERS_) { - $rootScope = _$rootScope_; - USERS = _USERS_; - $scope = $rootScope.$new(); - - spyOn($scope, '$emit'); - UsersSecondChildController = $controller('UsersSecondChildController', { - $rootScope: $rootScope, - $scope: $scope, - USERS: _USERS_ - }); - }); - }); - - describe('UsersSecondChildController', function () { - - it('should be created successfully', function () { - expect(UsersSecondChildController).toBeDefined(); - }); - - it('should be assigned rootScopeBroadcastUser', function () { - var rootScopeBroadcastUser = { - name: 'UsersChild To UsersSecondChild', - lastName: 'rootscope broadcasting to UsersSecondChild from UserChild', - city: 'UserChild' - }; - var event = { - name: USERS.ROOTSCOPE.BROADCAST_TO_SENCONDCHILD - }; - - UsersSecondChildController.usersSecondChildOnRootScopeBroadcast(event, rootScopeBroadcastUser); - - expect(UsersSecondChildController.rootScopeBroadcastUser).toEqual(rootScopeBroadcastUser); - }); - - it('should be assigned broadcastUser', function () { - var scopeBroadcastUser = { - name: 'UsersChild To UsersSecondChild', - lastName: 'rootscope broadcasting to UsersSecondChild from UserChild', - city: 'UserChild' - }; - var event = { - name: USERS.SCOPE.BROADCAST_TO_SENCONDCHILD - }; - - UsersSecondChildController.usersSecondChildOnScopeBroadcast(event, scopeBroadcastUser); - - expect(UsersSecondChildController.scopeBroadcastUser).toEqual(scopeBroadcastUser); - }); - }); - -}); diff --git a/angularjs/stomp/src/stomp/app/users/users.constants.js b/angularjs/stomp/src/stomp/app/users/users.constants.js deleted file mode 100644 index 4947956..0000000 --- a/angularjs/stomp/src/stomp/app/users/users.constants.js +++ /dev/null @@ -1,17 +0,0 @@ -(function () { - 'use strict'; - - angular - .module('app.users') - .constant('USERS', { - ROOTSCOPE: { - BROADCAST: 'USERS_ROOTSCOPE_BROADCAST', - BROADCAST_TO_SENCONDCHILD: 'USERS_ROOTSCOPE_BROADCAST_TO_SENCONDCHILD' - }, - SCOPE: { - EMIT_FACT: 'USERS_SCOPE_EMIT_FACT', - BROADCAST_TO_SENCONDCHILD: 'USERS_SCOPE_BROADCAST_TO_SENCONDCHILD' - } - }); - -})(); diff --git a/angularjs/stomp/src/stomp/app/users/users.controller.js b/angularjs/stomp/src/stomp/app/users/users.controller.js deleted file mode 100644 index 7a8723b..0000000 --- a/angularjs/stomp/src/stomp/app/users/users.controller.js +++ /dev/null @@ -1,59 +0,0 @@ -(function () { - 'use strict'; - - angular - .module('app.users') - .controller('UsersController', UsersController); - - /** - * @ngdoc controller - * @name app.users.controller:UsersController - * - * @requires $rootScope - * @requires $scope - * - *

- *
- * {@link https://docs.angularjs.org/api/ng/service/$rootScope $rootScope} - * {@link https://docs.angularjs.org/api/ng/type/$rootScope.Scope $scope} - *

- * - * @description - * UsersController controller. - */ - /* @ngInject */ - function UsersController($rootScope, $scope, USERS) { - var vm = this; - var rootScopeBroadcastUser = { - name: 'Snake', - lastName: 'Eyes', - city: 'classified' - }; - var scopeBroadcastUser = { - name: 'Shana', - lastName: 'M. O\'Hara', - city: 'Atlanta' - }; - var valueForChildControllers = { - variable: 'This is a variable from UsersController', - value: 'Hello child controller' - }; - - vm.getRootScopeBroadcast = function () { - $rootScope.$broadcast(USERS.ROOTSCOPE.BROADCAST, rootScopeBroadcastUser); - }; - vm.getScopeBroadcast = function () { - $scope.$broadcast(USERS.ROOTSCOPE.BROADCAST, scopeBroadcastUser); - }; - vm.usersOnEmitFact = function (events, emitFact) { - vm.emitFact = emitFact; - console.log('usersOnEmitFact, events.name: ' + events.name); - }; - vm.toBeCalledFromChildControllers = function () { - return valueForChildControllers; - }; - - $scope.$on(USERS.SCOPE.EMIT_FACT, vm.usersOnEmitFact); - } - -})(); diff --git a/angularjs/stomp/src/stomp/app/users/users.controller.spec.js b/angularjs/stomp/src/stomp/app/users/users.controller.spec.js deleted file mode 100644 index 6919a11..0000000 --- a/angularjs/stomp/src/stomp/app/users/users.controller.spec.js +++ /dev/null @@ -1,72 +0,0 @@ -describe('app.users', function() { - 'use strict'; - - var $rootScope; - var $scope; - var USERS; - var UsersController; - - beforeEach(function() { - module('app.users'); - - inject(function($controller, _$rootScope_, _USERS_) { - $rootScope = _$rootScope_; - USERS = _USERS_; - $scope = $rootScope.$new(); - - spyOn($rootScope, '$broadcast'); - jasmine.createSpy($scope, '$scope.$broadcast'); - UsersController = $controller('UsersController', { - $rootScope: $rootScope, - $scope: $scope, - USERS: _USERS_ - }); - }); - }); - - describe('UsersController', function () { - - it('should be created successfully', function () { - expect(UsersController).toBeDefined(); - }); - - it('should be called $rootScope.$broadcast', function () { - var rootScopeBroadcastUser = { - name: 'Snake', - lastName: 'Eyes', - city: 'classified' - }; - - UsersController.getRootScopeBroadcast(); - - expect($rootScope.$broadcast).toHaveBeenCalledWith(USERS.ROOTSCOPE.BROADCAST, rootScopeBroadcastUser); - }); - - it('should be called $scope.$broadcast', function () { - var scopeBroadcastUser = { - name: 'Shana', - lastName: 'M. O\'Hara', - city: 'Atlanta' - }; - - UsersController.getScopeBroadcast(); - - expect($scope.$broadcast).toHaveBeenCalledWith(USERS.ROOTSCOPE.BROADCAST, scopeBroadcastUser); - }); - - it('should be assigned emitFact', function () { - var emitFact = { - title: 'Snake and Scarlett', - fact: 'it is canon' - }; - var event = { - name: 'USERS_SCOPE_EMIT_FACT' - }; - - UsersController.usersOnEmitFact(event, emitFact); - - expect(UsersController.emitFact).toEqual(emitFact); - }); - }); - -}); diff --git a/angularjs/stomp/src/stomp/app/users/users.html b/angularjs/stomp/src/stomp/app/users/users.html deleted file mode 100644 index fba9854..0000000 --- a/angularjs/stomp/src/stomp/app/users/users.html +++ /dev/null @@ -1,48 +0,0 @@ - -
-
title = {{usersController.emitFact.title}}
-
fact = {{usersController.emitFact.fact}}
- - - - -
-
name = {{usersChildController.broadcastUser.name}}
-
lastname = {{usersChildController.broadcastUser.lastName}}
-
city = {{usersChildController.broadcastUser.city}}
- - -
- -

- -
-
valueForChildControllers.variable = {{usersChildController.valueForChildControllers.variable}}
-
valueForChildControllers.value = {{usersChildController.valueForChildControllers.value}}
-
-
-
- -
-
name = {{usersSecondChildController.rootScopeBroadcastUser.name}}
-
lastname = {{usersSecondChildController.rootScopeBroadcastUser.lastName}}
-
city = {{usersSecondChildController.rootScopeBroadcastUser.city}}
- -
- -
-
name = {{usersSecondChildController.scopeBroadcastUser.name}}
-
lastname = {{usersSecondChildController.scopeBroadcastUser.lastName}}
-
city = {{usersSecondChildController.scopeBroadcastUser.city}}
- -
- -
diff --git a/angularjs/stomp/src/stomp/app/users/users.module.js b/angularjs/stomp/src/stomp/app/users/users.module.js deleted file mode 100644 index 0ea1180..0000000 --- a/angularjs/stomp/src/stomp/app/users/users.module.js +++ /dev/null @@ -1,20 +0,0 @@ -(function() { - 'use strict'; - - /** - * @ngdoc overview - * @name app.users - * - * @requires app.core - * - * @description - * # app.users - * - * ## Module users. - * Module in charge of dealing with users. - */ - angular.module('app.users', [ - 'app.core' - ]); - -})(); diff --git a/angularjs/stomp/src/stomp/app/users/users.route.js b/angularjs/stomp/src/stomp/app/users/users.route.js deleted file mode 100644 index 62ca965..0000000 --- a/angularjs/stomp/src/stomp/app/users/users.route.js +++ /dev/null @@ -1,37 +0,0 @@ -(function() { - 'use strict'; - - angular - .module('app.users') - .config(route); - - /** - * @ngdoc service - * @name app.users.route - * - * @requires $stateProvider - * @requires $urlRouterProvider - * - *

- *
- * {@link http://angular-ui.github.io/ui-router/site/#/api/ui.router.state.$stateProvider $stateProvider}
- * {@link http://angular-ui.github.io/ui-router/site/#/api/ui.router.router.$urlRouterProvider $urlRouterProvider} - *

- * - * - * @description - * Router configuration for users application. - */ - /* @ngInject */ - function route($stateProvider, $urlRouterProvider) { - var state = 'users'; - var config = { - abstract: false, - url: '/users', - templateUrl: 'app/users/users.html' - }; - - $urlRouterProvider.otherwise(state); - $stateProvider.state(state, config); - } -}()); diff --git a/angularjs/stomp/src/stomp/app/users/users.route.spec.js b/angularjs/stomp/src/stomp/app/users/users.route.spec.js deleted file mode 100644 index 0131620..0000000 --- a/angularjs/stomp/src/stomp/app/users/users.route.spec.js +++ /dev/null @@ -1,24 +0,0 @@ -describe('app.users', function() { - 'use strict'; - - describe('state', function() { - var view = { - users: 'app/users/users.html' - }; - var $state; - - beforeEach(function() { - module('app.users'); - - inject(function(_$state_) { - $state = _$state_; - }); - }); - - it('should map /users route to users View template', function() { - expect($state.get('users').templateUrl).toEqual(view.users); - }); - - }); - -}); diff --git a/angularjs/stomp/src/stomp/index.html b/angularjs/stomp/src/stomp/index.html index 68ba700..2b71a4e 100644 --- a/angularjs/stomp/src/stomp/index.html +++ b/angularjs/stomp/src/stomp/index.html @@ -54,12 +54,9 @@ - - - - - - + + +