Last active
August 29, 2015 14:00
-
-
Save gsiegman/359346867c99270ae0be to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var dashboardApp = angular.module('dashboardApp', [ | |
'ngRoute', | |
'dashboardControllers' | |
]); | |
dashboardApp.config(['$routeProvider', | |
function($routeProvider) { | |
$routeProvider.when('/index', { | |
templateUrl: 'views/partials/dashboard_index.html', | |
controller: 'IndexCtrl' | |
}).otherwise({ | |
redirectTo: '/index' | |
}); | |
} | |
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var dashboardControllers = angular.module('dashboardControllers', []); | |
dashboardControllers.controller('IndexCtrl', ['$scope', | |
function($scope) { | |
$scope.greeting = 'WELCOME TO YOUR DASHBOARD!'; | |
} | |
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1 class="page-header">{{greeting}}</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en" ng-app="dashboardApp"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Dashboard</title> | |
<!-- Bootstrap --> | |
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet"> | |
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> | |
<!-- WARNING: Respond.js doesn't work if you view the page via file:// --> | |
<!--[if lt IE 9]> | |
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> | |
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> | |
<![endif]--> | |
<link href="/static/css/main.css" rel="stylesheet"> | |
</head> | |
<body> | |
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation"> | |
<div class="container-fluid"> | |
<div class="navbar-header"> | |
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> | |
<span class="sr-only">Toggle navigation</span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
</button> | |
<!-- <a class="navbar-brand" href="#">Project name</a> --> | |
</div> | |
</div> | |
</div> <!-- .navbar --> | |
<div class="container-fluid"> | |
<div class="row"> | |
<div class="col-sm-2 col-md-1 sidebar"> | |
<ul class="nav nav-sidebar"> | |
<li class="active"><a href="#">DASHBOARD</a></li> | |
<li><a href="#">SOURCES</a></li> | |
<li><a href="#">ANALYTICS</a></li> | |
</ul> | |
</div> | |
<div class="col-sm-10 col-sm-offset-2 col-md-11 col-md-offset-1 main" ng-view> | |
</div> | |
</div> | |
</div> | |
<script src="/static/js/angular.min.js"></script> | |
<script src="/static/js/angular-route.min.js"></script> | |
<script src="/static/js/app.js"></script> | |
<script src="/static/js/controllers.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment