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
111
111
* }
112
112
*
113
113
* function PanelMenuCtrl(mdPanelRef) {
114
+ * // The controller is provided with an import named 'mdPanelRef'
114
115
* this.closeMenu = function() {
115
116
* mdPanelRef && mdPanelRef.close();
116
117
* };
@@ -235,7 +236,8 @@ angular
235
236
* - `locals` - `{Object=}`: An object containing key/value pairs. The keys
236
237
* will be used as names of values to inject into the controller. For
237
238
* 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.
239
241
* - `resolve` - `{Object=}`: Similar to locals, except it takes promises as
240
242
* values. The panel will not open until all of the promises resolve.
241
243
* - `attachTo` - `{(string|!angular.JQLite|!Element)=}`: The element to
You can’t perform that action at this time.
0 commit comments