transgressions controller working

angular
Matt Huntington 10 years ago
parent 0ed4ee13e7
commit 0b3a5f075f

@ -7,3 +7,7 @@ app.controller('HeaderController', ['$http', function($http){
console.log(controller.current_user);
})
}]);
app.controller('TransgressionsController', ['$http', function($http){
this.foo = 'bar'
}]);

@ -2,6 +2,6 @@
<h1>Greetings {{header.current_user.email}}, you are a glorious reprobate!</h1>
</header>
<main>
main!
<main ng-controller="TransgressionsController as transgressions">
{{transgressions.foo}}
</main>

Loading…
Cancel
Save