bower install
Hey guys - I am trying out the starter theme. It works OK, when I inspect the front end with developers tools in chrome, I got this one error:
angular.min.js:89 Error: Invalid state ref ''
at B (http://localhost:9000/bower_components/angular-ui-router/release/angular-ui-router.min.js:7:23780)
at D.link (http://localhost:9000/bower_components/angular-ui-router/release/angular-ui-router.min.js:7:24122)
at J (http://localhost:9000/bower_components/angular/angular.min.js:53:345)
at f (http://localhost:9000/bower_components/angular/angular.min.js:46:399)
at J (http://localhost:9000/bower_components/angular/angular.min.js:53:286)
at f (http://localhost:9000/bower_components/angular/angular.min.js:46:399)
at J (http://localhost:9000/bower_components/angular/angular.min.js:53:286)
at http://localhost:9000/bower_components/angular/angular.min.js:59:454
at http://localhost:9000/bower_components/angular/angular.min.js:70:515
at u (http://localhost:9000/bower_components/angular/angular.min.js:97:280) <a ui-sref="{{goto}}">(anonymous function) @ angular.min.js:89
$ocLazyLoad.load({
name: 'sbAdminApp',
files: ['scripts/controllers/GoogleChartController.js',
'scripts/controllers/comparativeController.js']
}),
bower
it suppose to have bower_components
folder
i have added in app.js to spadmin app.js file var cashflowHomeModuleapp = angular.module('cashflowHomeModuleApp', ['ui.router']);
//--Module Configuration--------------------
var configs = function ($urlRouterProvider, $stateProvider) {
$urlRouterProvider.otherwise('/');
$stateProvider
.state('/',
{
url: '',
templateUrl: 'views/pages/home.html'
}).state('contact',
{
url: '/contact',
templateUrl: 'views/pages/contact.html'
}).state('signin',
{
url: '/signin',
templateUrl: 'views/pages/signin.html'
}).state('signup',
{
url: '/signup',
templateUrl: 'views/pages/signup.html'
});
};
cashflowHomeModuleapp.config(['$urlRouterProvider', '$stateProvider',configs]);