Skip to content

Instantly share code, notes, and snippets.

@hebbian
Last active March 2, 2016 04:09
Show Gist options
  • Save hebbian/ef9ec9e13d2e32395818 to your computer and use it in GitHub Desktop.
Save hebbian/ef9ec9e13d2e32395818 to your computer and use it in GitHub Desktop.
app.js
(function() {
var app = angular.module("skeleton-app", []);
}());
(function(app) {
app.controller('njajalcontroller', function($scope){
$scope.hello = "hahahaha";
});
}(angular.module('app')));
<html ng-app="app">
<head>
<script src="bower_component/angular/<path_to_angular.js>"></script>
<script src="js/app.js"></script>
<script src="js/controllers/njajalcontroller.js"></script>
</head>
<body ng-controller="njajalcontroller">
{{hello}}
</body>
</html>
var express = require('express'), app=express();
app.use(express.static(__dirname + '/'));
app.listen(4321, '0.0.0.0');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment