File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ angular
111111 *   } 
112112 * 
113113 *   function PanelMenuCtrl(mdPanelRef) { 
114+  *     // The controller is provided with an import named 'mdPanelRef' 
114115 *     this.closeMenu = function() { 
115116 *       mdPanelRef && mdPanelRef.close(); 
116117 *     }; 
@@ -235,7 +236,8 @@ angular
235236 *   - `locals` - `{Object=}`: An object containing key/value pairs. The keys 
236237 *     will be used as names of values to inject into the controller. For 
237238 *     example, `locals: {three: 3}` would inject `three` into the controller, 
238-  *     with the value 3. 
239+  *     with the value 3. 'mdPanelRef' is a reserved key, and will always  
240+  *     be set to the created MdPanelRef instance. 
239241 *   - `resolve` - `{Object=}`: Similar to locals, except it takes promises as 
240242 *     values. The panel will not open until all of the promises resolve. 
241243 *   - `attachTo` - `{(string|!angular.JQLite|!Element)=}`: The element to 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments