Skip to content

Commit

Permalink
fixed boardcontroller error of undefined, commented out css
Browse files Browse the repository at this point in the history
  • Loading branch information
helanan committed Dec 3, 2016
1 parent 795ec4c commit f2a98db
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 17 deletions.
4 changes: 2 additions & 2 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ h1 {

/*Login Partial*/

.form-signin {
/*.form-signin {
max-width: 330px;
padding: 15px;
margin: 0 auto;
Expand Down Expand Up @@ -48,4 +48,4 @@ h1 {
margin-bottom: 10px;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
}*/
28 changes: 17 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,35 +1,41 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Pin This!</title>
<link href="https://fonts.googleapis.com/css?family=Anton|Yanone+Kaffeesatz" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/main.css">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="/lib/bower_components/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/main.css">
</head>

<body>
<body ng-app="PinThisApp">
<div ng-include='./partials/navbar.html'></div>
<!-- <div ng-include='./partials/navbar.html'></div> -->

<div class="row">
<h1>Pin This!</h1>
<div class="col-xs-offset-2 col-xs-8" ng-view></div>
<h1>Pin This!</h1>
<div class="col-xs-offset-2 col-xs-8" ng-view></div>
</div>
</body>

<script src="https://www.gstatic.com/firebasejs/3.6.2/firebase.js"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<!-- <script type="text/javascript" src="js/materialize.min.js"></script> -->
<script type="text/javascript" src="/lib/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/lib/bower_components/angular/angular.min.js"></script>
<script src="/lib/bower_components/angular-route/angular-route.min.js"></script>



<script src="/javascripts/app.js"></script>
<script src="/javascripts/AppConstants.js"></script>
<script src="/javascripts/AppConfig.js"></script>
<script src="/javascripts/factories/AuthFactory.js"></script>
<!-- <script src="/javascripts/factories/BoardFactory.js"></script> -->
<script src="/javascripts/factories/BoardFactory.js">
<script src="/javascripts/factories/UserFactory.js"></script>
<script src="/javascripts/controllers/AuthCtrl.js"></script>
<!-- <script src="/javascripts/controllers/NavCtrl.js"></script> -->
<!-- <script src="/javascripts/controllers/GeneralViewCtrl.js"></script>
<script src="/javascripts/controllers/CreateBoardCtrl.js"></script>
<script src="/javascripts/controllers/CreateBoardCtrl.js"></script> -->
<script src="/javascripts/controllers/BoardViewCtrl.js"></script>
<script src="/javascripts/controllers/BoardEditCtrl.js"></script> -->
<script src="/javascripts/controllers/BoardEditCtrl.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion javascripts/controllers/BoardEditCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ app.controller("BoardEditCtrl", function($scope, $location, $routeParams, BoardF

$scope.addNewBoard = function(){
BoardFactory.editBoard($scope.newBoard).then(function(response){
$scope.newBoard = {};
$scope.newPins = {};
$location.url("/boards/list");
});
};
Expand Down
4 changes: 1 addition & 3 deletions javascripts/controllers/BoardViewCtrl.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
"use strict";

app.controller("BoardViewCtrl", function($scope, $routeParams, BoardFactory){
console.log("routeParams", $routeParams);
$scope.selectedBoard = {};
let BoardId = $routeParams.id;
let boardId = $routeParams.id;
console.log("$routeParams", BoardId);

BoardFactory.getSingleBoard(boardId).then(function(oneBoard){
oneBoard.id=boardId;
$scope.selectedBoard = oneBoard;
console.log("oneBoard", oneBoard);
});
});

0 comments on commit f2a98db

Please sign in to comment.