Last active
June 23, 2016 19:29
-
-
Save mklickman/4c8710f030a02f290e0ca5c88a849ab5 to your computer and use it in GitHub Desktop.
Browserify error from ui-router
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('angular'); | |
require('angular-ui-router'); | |
require('./gg-root.js'); | |
require('./gg-routes.js'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('gravityGun', [ | |
'ui.router' | |
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('gravityGun') | |
.config(function($stateProvider, $urlRouterProvider) { | |
$urlRouterProvider.otherwise('/'); | |
$stateProvider | |
.state('dashboard', { | |
url: '/', | |
templateUrl: 'templates/dashboard/home.html' | |
}) | |
.state('customers' { | |
url: '/customers', | |
templateUrl: 'templates/customers/index.html' | |
}) | |
.state('stores', { | |
url: '/stores', | |
templateUrl: 'templates/stores/index.html' | |
}) | |
.state('applications', { | |
url: '/applications', | |
templateUrl: 'templates/applications/index.html' | |
}) | |
.state('contracts', { | |
url: '/contracts', | |
templateUrl: 'templates/contracts/index.html' | |
}) | |
.state('receipts', { | |
url: '/receipts', | |
templateUrl: 'templates/receipts/index.html' | |
}) | |
.state('admin', { | |
url: '/admin', | |
templateUrl: 'templates/admin/index.html' | |
}) | |
; | |
}) | |
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ browserify app/js/app.js | |
/gravity_gun/app/js/gg-routes.js:11 | |
.state('customers' { | |
^ | |
ParseError: Unexpected token |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment