mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-01-26 15:04:19 +01:00
23 lines
569 B
JavaScript
23 lines
569 B
JavaScript
var boards = angular.module('boards',['ui.router'])
|
|
|
|
boards.config(function($stateProvider,$urlRouterProvider,$locationProvider){
|
|
$urlRouterProvider.otherwise('/')
|
|
//$locationProvider.html5Mode({ enabled: true, requireBase: false })
|
|
|
|
$stateProvider.state('home',{
|
|
url: '/',
|
|
templateUrl: 'home.html',
|
|
controller: function($scope){
|
|
|
|
}
|
|
})
|
|
|
|
$stateProvider.state('board',{
|
|
url: '/board/:name',
|
|
templateUrl: 'board.html',
|
|
controller: function($scope,$stateParams){
|
|
$scope.posts = [ "hey", "test", "something" ]
|
|
}
|
|
})
|
|
})
|