Skip to content

Instantly share code, notes, and snippets.

@huytrongnguyen
Last active April 7, 2018 03:56
Show Gist options
  • Select an option

  • Save huytrongnguyen/0fd2a68d2b562de99a7f33ed94ac7720 to your computer and use it in GitHub Desktop.

Select an option

Save huytrongnguyen/0fd2a68d2b562de99a7f33ed94ac7720 to your computer and use it in GitHub Desktop.
import angular from 'angular';
import Home from './home/home.component';
export default angular
.module('app.components', [])
.component('home', Home)
.config(($stateProvider, $urlRouterProvider) => {
'ngInject';
$stateProvider
.state('home', { url: '/', component: 'home' });
$urlRouterProvider.otherwise('/');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment