Skip to content

Instantly share code, notes, and snippets.

@ggoodman
Forked from ggoodman/app.coffee
Last active October 10, 2015 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ggoodman/3662696 to your computer and use it in GitHub Desktop.
Save ggoodman/3662696 to your computer and use it in GitHub Desktop.
AngularJS unstable + Coffee
app = angular.module('plunker', [])
app.controller 'MainCtrl', ($scope) ->
$scope.name = 'World'
<!doctype html>
<html ng-app="plunker">
<head>
<meta charset="utf-8">
<title>AngularJS Plunker</title>
<script>document.write('<base href="' + document.location + '" />');</script>
<link rel="stylesheet" href="style.css">
<script data-require="angular.js@1.1.x" src="http://code.angularjs.org/1.1.4/angular.js"></script>
<script src="app.js"></script>
</head>
<body ng-controller="MainCtrl">
<p>Hello {{name}}!</p>
</body>
</html>
{
"tags": ["angularjs", "coffee"]
}
/* Put your css in here */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment