Skip to content

Instantly share code, notes, and snippets.

@ggoodman
Forked from vojtajina/app.js
Last active October 9, 2015 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save ggoodman/3510140 to your computer and use it in GitHub Desktop.
Save ggoodman/3510140 to your computer and use it in GitHub Desktop.
AngularJS template
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>
<script>document.write('<base href="' + document.location + '" />');</script>
<link rel="stylesheet" href="style.css">
<script data-require="angular.js@1.0.x" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.6/angular.js"></script>
<script src="app.js"></script>
</head>
<body ng-controller="MainCtrl">
<p>Hello {{name}}!</p>
</body>
</html>
{
"tags": ["angularjs"]
}
/* Put your css in here */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment