Skip to content

Instantly share code, notes, and snippets.

@mklickman
Last active June 23, 2016 19:29
Show Gist options
  • Save mklickman/4c8710f030a02f290e0ca5c88a849ab5 to your computer and use it in GitHub Desktop.
Save mklickman/4c8710f030a02f290e0ca5c88a849ab5 to your computer and use it in GitHub Desktop.
Browserify error from ui-router
require('angular');
require('angular-ui-router');
require('./gg-root.js');
require('./gg-routes.js');
angular.module('gravityGun', [
'ui.router'
]);
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'
})
;
})
;
$ 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