Created
April 17, 2015 02:45
-
-
Save jonatasfreitasv/ed3ddebbfc536936d09d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var app = angular.module('controlacar', ['ngRoute'], ['shared']); | |
app.config(['$routeProvider', '$locationProvider', function($routeProvider,$locationProvider) { | |
$locationProvider.hashPrefix('!'); | |
$routeProvider | |
.when('/', { | |
templateUrl: 'components/login/form.html' | |
}) | |
.when('/dashboard', { | |
templateUrl: 'components/dashboard/page.html' | |
}) | |
.when('/messages', { | |
templateUrl: 'components/messages/page.html' | |
}); | |
}]); |
This file contains hidden or 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
<!-- Header and Footer --> | |
<sidebar></sidebar> |
This file contains hidden or 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
/** | |
* Product | |
* | |
* Product Directive | |
*/ | |
var app = angular.module('shared', []); | |
app.directive('sidebar', function(){ | |
// Runs during compile | |
return { | |
// name: '', | |
// priority: 1, | |
// terminal: true, | |
// scope: {}, // {} = isolate, true = child, false/undefined = no change | |
controller: function() { | |
}, | |
controllerAs: 'controlacar', | |
// require: 'ngModel', // Array = multiple requires, ? = optional, ^ = check parent elements | |
restrict: 'E', // E = Element, A = Attribute, C = Class, M = Comment | |
// template: '', | |
templateUrl: 'components/shared/sidebar.html', | |
// replace: true, | |
// transclude: true, | |
// compile: function(tElement, tAttrs, function transclude(function(scope, cloneLinkingFn){ return function linking(scope, elm, attrs){}})), | |
}; | |
}); |
This file contains hidden or 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 class="login-bg" ng-app="controlacar"> | |
<head> | |
<title>CarSystem - Login</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<!-- bootstrap --> | |
<link href="assets/css/bootstrap/bootstrap.css" rel="stylesheet"> | |
<link href="assets/css/bootstrap/bootstrap-responsive.css" rel="stylesheet"> | |
<link href="assets/css/bootstrap/bootstrap-overrides.css" type="text/css" rel="stylesheet"> | |
<!-- global styles --> | |
<link rel="stylesheet" type="text/css" href="assets/css/layout.css"> | |
<link rel="stylesheet" type="text/css" href="assets/css/elements.css"> | |
<link rel="stylesheet" type="text/css" href="assets/css/icons.css"> | |
<!-- libraries --> | |
<link rel="stylesheet" type="text/css" href="assets/css/lib/font-awesome.css"> | |
<link href="assets/css/lib/jquery-ui-1.10.2.custom.css" rel="stylesheet" type="text/css" /> | |
<!-- open sans font --> | |
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'/> | |
<!-- lato font --> | |
<link href='http://fonts.googleapis.com/css?family=Lato:300,400,700,900,300italic,400italic,700italic,900italic' rel='stylesheet' type='text/css'> | |
<!--[if lt IE 9]> | |
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> | |
</head> | |
<body> | |
<div id="ng-view" ng-view></div> | |
<!-- scripts --> | |
<script src="assets/js/angular.min.js"></script> | |
<script src="assets/js/angular-route.min.js"></script> | |
<script src="app.js"></script> | |
<script src="components/shared/directive.js"></script> | |
<script src="http://code.jquery.com/jquery-latest.js"></script> | |
<script src="assets/js/bootstrap.min.js"></script> | |
<!-- knob --> | |
<script src="assets/js/jquery.knob.js"></script> | |
<!-- flot charts --> | |
<script src="assets/js/jquery.flot.js"></script> | |
<script src="assets/js/jquery.flot.stack.js"></script> | |
<script src="assets/js/jquery.flot.resize.js"></script> | |
<!-- scroll --> | |
<script src="assets/js/jquery.mousewheel.js"></script> | |
<script src="assets/js/mwheelIntent.js"></script> | |
<script type="text/javascript" src="assets/js/jquery.jscrollpane.min.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment