Skip to content
Snippets Groups Projects
  • rhenck's avatar
    a6bdf445
    Change all selector prefixes from "app" to "aspect" · a6bdf445
    rhenck authored
    This is done according to the Angular best practices and minimizes
    namespace collisions when using other packages which might use the same
    selectors.
    
    Technically the selectors are not even becessary since we use an Angular
    component factory to create element components but it is still useful
    for the DOM element naming, for debugging purposes for example.
    a6bdf445
    History
    Change all selector prefixes from "app" to "aspect"
    rhenck authored
    This is done according to the Angular best practices and minimizes
    namespace collisions when using other packages which might use the same
    selectors.
    
    Technically the selectors are not even becessary since we use an Angular
    component factory to create element components but it is still useful
    for the DOM element naming, for debugging purposes for example.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
text-edit-multiline-dialog.component.ts 794 B
import { Component, Inject } from '@angular/core';
import { MAT_DIALOG_DATA } from '@angular/material/dialog';

@Component({
  selector: 'aspect-multiline-text-edit-dialog',
  template: `
    <mat-dialog-content>
      <mat-form-field>
        <mat-label>{{'text' | translate }}</mat-label>
        <textarea #inputElement matInput type="text" [value]="data.text">
        </textarea>
      </mat-form-field>
    </mat-dialog-content>
    <mat-dialog-actions>
      <button mat-button [mat-dialog-close]="inputElement.value">{{'save' | translate }}</button>
      <button mat-button mat-dialog-close>{{'cancel' | translate }}</button>
    </mat-dialog-actions>
    `
})
export class TextEditMultilineDialogComponent {
  constructor(@Inject(MAT_DIALOG_DATA) public data: { text: string }) { }
}