File

src/lib/dialog/fullscreen/fullscreen.component.ts

Implements

OnInit

Metadata

selector cause-dialog-fullscreen
styleUrls fullscreen.component.styl
templateUrl ./fullscreen.component.html

Inputs

content

Type: string

title

Type: string

Constructor

constructor(dialogRef: MdDialogRef)

Methods

ngOnInit
ngOnInit()
Returns : void

Properties

dialogRef
dialogRef: MdDialogRef<FullscreenComponent>
Type : MdDialogRef<FullscreenComponent>
import {Component, Input, OnInit} from '@angular/core';
import {MdDialogRef} from '@angular/material';

@Component({
  selector: 'cause-dialog-fullscreen',
  templateUrl: './fullscreen.component.html',
  styleUrls: ['./fullscreen.component.styl']
})
export class FullscreenComponent implements OnInit {

  @Input() title: string;
  @Input() content: string;

  constructor(public dialogRef: MdDialogRef<FullscreenComponent>) { }

  ngOnInit() {
  }
}
<span class="close" (click)="dialogRef.close()"><md-icon>close</md-icon></span>
<h1 md-dialog-title>{{title}}</h1>
<div md-dialog-content innerHTML="{{content}}"></div>
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""