Skip to content

Instantly share code, notes, and snippets.

@alecklandgraf
Last active June 28, 2016 01:13
Show Gist options
  • Save alecklandgraf/53d0fd30fddadf566b4915ba902cf9a6 to your computer and use it in GitHub Desktop.
Save alecklandgraf/53d0fd30fddadf566b4915ba902cf9a6 to your computer and use it in GitHub Desktop.
hello3 component
module.component('helloNavFetch', {
controller: ['Me', function(Me) {
var ctrl = this;
this.$onInit = function () {
ctrl.loading = true;
Me.query().$promise.then(function (me) {
ctrl.me = me;
ctrl.loading = false;
});
};
}],
template: `<hello-page
me="$ctrl.me"
loading="ctrl.loading"
></hello-page>`
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment