Skip to content

Instantly share code, notes, and snippets.

@ggoodman
Forked from ggoodman/app.coffee
Created September 7, 2012 02:37
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/3662659 to your computer and use it in GitHub Desktop.
Save ggoodman/3662659 to your computer and use it in GitHub Desktop.
AngularJS@1.0.2 + Coffee
app = angular.module('plunker', [])
app.controller 'MainCtrl', ($scope) ->
$scope.name = 'World'
angular.bootstrap(document, ['plunker'])
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>AngularJS Plunker</title>
<script>document.write("<base href=\"" + document.location + "\" />");</script>
<link rel="stylesheet" href="style.css">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.2/angular.js"></script>
<script src="http://coffeescript.org/extras/coffee-script.js"></script>
<script type="text/coffeescript" src="app.coffee"></script>
</head>
<body ng-controller="MainCtrl">
Hello {{name}}!
</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