Dialog with inline Template
- Langage dominant
- TypeScript
- Étoiles
- 25k
- Forks
- 6.8k
- Merge moyen
- 1 j 8 h
- PR mergées (30 j)
- 91
Description
#### 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
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par l’exemple StackBlitz lié, en particulier app/app.component.html, et comparez l’utilisation inline demandée de mat-dialog avec la documentation et le code source existants de Material dialog. Déterminez si le contenu projeté et mat-dialog-close peuvent être pris en charge, puis définissez l’API et les tests nécessaires pour ouvrir la boîte de dialogue et renvoyer le résultat sélectionné.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, typescript
- Domaine
- frontend
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100