nw-session.js 348 B

12345678910111213
  1. angular.module('NoteWrangler').directive('nwSession', function(Session) {
  2. return {
  3. replace: true,
  4. restrict: 'E',
  5. scope: {},
  6. templateUrl: '/templates/directives/nw-session.html',
  7. link: function(scope, element, attrs) {
  8. Session.sessionData().success(function(data) {
  9. scope.session = data;
  10. });
  11. }
  12. };
  13. });