Dialog with inline Template
- Ngôn ngữ chính
- TypeScript
- Star
- 25k
- Fork
- 6.8k
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 91
Mô tả
#### Bug, feature request, or proposal:
feature request
#### What is the expected behavior?
I'd like to use something like this (just like `mat-menu`):
```
Open it
Dialog Title
Content
Cancel
Confirm
```
#### What is the current behavior?
Doesn't exist as fat as I have seen in the docs and source code.
#### What are the steps to reproduce?
I've created a small component which demonstrates what I'm looking for:
https://stackblitz.com/edit/angular-material2-issue-tp5aej?file=app%2Fapp.component.html
(I didn't get `mat-dialog-close` working with the projection, though I chose to just add a method to my dialog component)
#### What is the use-case or motivation for changing an existing behavior?
There are many use cases where I just want a very simple dialog, and don't want to write 30 lines of code.
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 6 beta
Material 6 beta
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với ví dụ StackBlitz được liên kết, đặc biệt là app/app.component.html, và so sánh cách sử dụng mat-dialog inline được yêu cầu với tài liệu và mã nguồn Material dialog hiện có. Xác định xem có thể hỗ trợ nội dung được projection và mat-dialog-close hay không, sau đó định nghĩa API và các bài kiểm thử cần thiết để mở dialog và trả về kết quả đã chọn.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- angular, typescript
- Lĩnh vực
- frontend
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100