Skip to content

Instantly share code, notes, and snippets.

@ggoodman
Created March 2, 2012 20:52
Show Gist options
  • Save ggoodman/1961272 to your computer and use it in GitHub Desktop.
Save ggoodman/1961272 to your computer and use it in GitHub Desktop.
Basic AngularJS
var app = angular.module('plunker', []);
app.controller('MainCtrl', function($scope) {
$scope.name = 'World';
});
<!doctype html>
<html ng-app="plunker" >
<head>
<meta charset="utf-8">
<title>AngularJS Plunker</title>
<link rel="stylesheet" href="style.css">
<script src="http://code.angularjs.org/1.0.0rc3/angular-1.0.0rc3.js"></script>
<script src="app.js"></script>
</head>
<body ng-controller="MainCtrl">
Hello {{name}}!
</body>
</html>
/* Put your css in here */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment