Skip to content

Instantly share code, notes, and snippets.

@BrockFredin
Created April 17, 2014 06:20
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 BrockFredin/10957287 to your computer and use it in GitHub Desktop.
Save BrockFredin/10957287 to your computer and use it in GitHub Desktop.
angular
.module('app', [])
.controller('SprintCtrl', function ($scope) {
var sprints = [63, 64, 65];
$scope.sprints = sprints;
})
.controller('DefectCtrl', function ($scope) {
var defect = [{
sprint: "65",
number: "10",
desc: "some desc"
}];
$scope.defect = defects;
});
<!DOCTYPE html>
<html>
<title>D3 Demo</title>
</head>
<body ng-app="app">
<div ng-controller="SprintCtrl">
<h1>Sprint</h1>
<pre>{{sprints | json}}</pre>
</div>
<div ng-controller="DefectCtrl">
<div ng-controller="DefectCtrl">
<div ng-repeat="defect in defects">
<p>{{defect.number}}</p>
</div>
<script src = "bower_components/angular/angular.min.js"></script>
<script src = "app.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment