This repository was archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
feat(dialog): support using AngularJS 1.5+ components directly #8409
Copy link
Copy link
Open
Labels
- Lots of CommentsP3: importantImportant issues that really should be fixed when possible.Important issues that really should be fixed when possible.hotlist: ngUpgradeneeds: investigationThe cause of this issue is not well understood and needs to be investigated by the team or communityThe cause of this issue is not well understood and needs to be investigated by the team or communitytype: enhancement
Milestone
Description
Actual behavior:
- What is the issue? *
$mdDialog
service is not working with angular 1.5 components.
$mdDialog.show({
template: "<task-show task="task"></task-show>",
autoWrap: false,
parent: angular.element(document.body),
targetEvent: ev,
openFrom: {
left: 2500,
top: 0,
width: 50,
height: 500
},
locals:{
task:task
},
closeTo: {
left: 2500,
top: 0,
width: 50,
height: 500
},
resolve: {
module: ['$q', function ($q) {
$ocLazyLoad.load({
name: module.name
});
}]
}
}).then(function (message) {
}, function (cancelmessage) {
//console.log(cancelmessage);
});
May the problem with template, it is not accepting the task as input. which is binding for taskShow
component
- What is the expected behavior?
It should open an dialog with given component template
CodePen or Steps to reproduce the issue: *
- CodePen Demo which shows your issue :
- Details:
Angular Versions: *
- Angular Version: 1.5.5
- Angular Material Version: 1.0.6
Additional Information:
- Browser Type: chrome
- Browser Version: 50
- OS: ubuntu
- Stack Traces: it clear that task in the input template not coming to controller.
Do not modify the titles or questions. Simply add your responses to the ends of the questions.
Add more lines if needed.
robianmcd, george3447, aider, hsmith94 and wolfet
Metadata
Metadata
Assignees
Labels
- Lots of CommentsP3: importantImportant issues that really should be fixed when possible.Important issues that really should be fixed when possible.hotlist: ngUpgradeneeds: investigationThe cause of this issue is not well understood and needs to be investigated by the team or communityThe cause of this issue is not well understood and needs to be investigated by the team or communitytype: enhancement