Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 01a7a78

Browse files
devversionThomasBurleson
authored andcommitted
docs(dialog): content elements will be not linked (#9671)
* Mention briefly that content elements will be not linked to any scope / or will not instantiate any controller. Closes #9571.
1 parent 35b7033 commit 01a7a78

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/dialog/dialog.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ function MdDialogDirective($$rAF, $mdTheming, $mdDialog) {
203203
* ### Pre-Rendered Dialogs
204204
* By using the `contentElement` option, it is possible to use an already existing element in the DOM.
205205
*
206+
* > Pre-rendered dialogs will be not linked to any scope and will not instantiate any new controller.<br/>
207+
* > You can manually link the elements to a scope or instantiate a controller from the template (`ng-controller`)
208+
*
206209
* <hljs lang="js">
207210
* $scope.showPrerenderedDialog = function() {
208211
* $mdDialog.show({

0 commit comments

Comments
 (0)