Skip to content

Instantly share code, notes, and snippets.

@mustmodify
Last active December 20, 2015 09:09
Show Gist options
  • Save mustmodify/6105491 to your computer and use it in GitHub Desktop.
Save mustmodify/6105491 to your computer and use it in GitHub Desktop.
A gist that you can use in plnkr as a baseline angularjs app... for demonstrating your problems / confusion. Based on https://gist.github.com/ProLoser/3172544 ... edited because of issues with raw.github.com mime type.
var app = angular.module('plunker', []);
app.controller('MainCtrl', function($scope) {
$scope.name = 'World';
});
<!DOCTYPE html>
<html ng-app="plunker">
<head>
<title>AngularJS Plunker</title>
<!-- angular -->
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.js"></script>
<!-- your app.js file -->
<script src="app.js"></script>
<!-- bootstrap css -->
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" />
<!-- your style.css file -->
<link href="style.css" rel="stylesheet" />
</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