/* Main AngularJS Web Application */
var app = angular.module('nevarwareApp', [ 'ngRoute' ]);

/* Configure the Routes */
app.config(['$routeProvider', function ($routeProvider) {
    $routeProvider
	// Home
	.when("/", {templateUrl: "partials/nevarware.html", controller: "PageCtrl"})
	// Pages
        .when("/programming", {templateUrl: "partials/programming.html", controller: "PageCtrl"})
        .when("/projects", {templateUrl: "partials/projects.html", controller: "PageCtrl"})
        .when("/art", {templateUrl: "partials/art.html", controller: "PageCtrl"})
        .when("/poetry", {templateUrl: "partials/poetry.html", controller: "PageCtrl"})
        .when("/principles", {templateUrl: "partials/principles.html", controller: "PageCtrl"})
        .when("/cv", {templateUrl: "partials/cv.html", controller: "PageCtrl"})

        // For easy addition of more pages:        
        // .when("", {templateUrl: "partials/.html", controller: "PageCtrl"})

        // Blog
	.when("/blog", {templateUrl: "partials/blog.html", controller: "BlogCtrl"})
	.when("/blog/post", {templateUrl: "partials/blog_item.html", controller: "BlogCtrl"})
        
	// else 404
	.otherwise("/404", {templateUrl: "partials/404.html", controller: "PageCtrl"});
}]);


app.controller('PageCtrl', ['$scope', PageController]);
    
function PageController($scope){};



