1
0
mirror of https://github.com/fazo96/ipfs-boards synced 2025-01-26 15:04:19 +01:00
ipfs-boards/webapp/app.js
2015-11-11 09:18:36 +01:00

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" ]
}
})
})