Skip to content

Commit

Permalink
Creating the app from scratch
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsitnik committed Apr 3, 2015
1 parent e28bfcf commit 7802978
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 1 deletion.
1 change: 0 additions & 1 deletion README.md

This file was deleted.

15 changes: 15 additions & 0 deletions css/app.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

// Converted Variables


// Custom Media Query Variables


[class*="col-"] {
padding-top: 15px;
padding-bottom: 15px;
background-color: #eee;
background-color: rgba(86,61,124,.15);
border: 1px solid #ddd;
border: 1px solid rgba(86,61,124,.2);
}
15 changes: 15 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<html>
<head>
<title>Beautiful Angular</title>
<link rel="stylesheet" href="vendor/css/bootstrap.min.css">
<link rel="stylesheet" href="css/app.css">
<script src="js/app.js"></script>
</head>
<body ng-app='beautiful'>
<section ng-controller='HomeController'>
<h1>{{ heading() }}</h1>

<input type='text' ng-model='name'>
</section>
</body>
</html>
6 changes: 6 additions & 0 deletions js/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Angular is defined as window.angular upon require
require('angular');

window.app = angular.module('beautiful', []);

require('./controllers/home');
7 changes: 7 additions & 0 deletions js/controllers/home.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
app.controller('HomeController', ['$scope', function($scope) {
$scope.name = 'Angular';

$scope.heading = function() {
return 'Hello Beautiful World of ' + $scope.name;
};
}]);
5 changes: 5 additions & 0 deletions vendor/css/bootstrap.min.css

Large diffs are not rendered by default.

0 comments on commit 7802978

Please sign in to comment.