SHARE
TWEET

Untitled

a guest May 10th, 2016 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     function contentSidebarDirective() {
  2.         return {
  3.             controller: 'ContentSidebarDirectiveController as widget',
  4.             templateUrl: 'content-editor/new/content-sidebar.directive.html',
  5.             scope: {
  6.                 editor: '='
  7.             }  
  8.         };  
  9.     }
  10.  
  11.  
  12. /* as a result, $scope.editor is undefined in the directive controller. but $scope.$parent.editor is defined! */
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top