All Components

DialogModule

A module that includes all Dialog components and directives.

Imports DialogModule into the root module
of your application or into any other sub-module that will use the Dialog component.

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { DialogModule } from '@progress/kendo-angular-dialog';
import { AppComponent } from './app.component';

@NgModule({
    bootstrap:    [AppComponent],
    declarations: [AppComponent],
    imports:      [BrowserModule, DialogModule]
})
export class AppModule {
}

Methods

forRoot

Creates a module with a DialogService provider and Dialog components defined as entryComponents.
To dynamically create Dialogs, use it along with DialogService.

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { DialogModule } from '@progress/kendo-angular-dialog';
import { AppComponent } from './app.component';

@NgModule({
    bootstrap:    [AppComponent],
    declarations: [AppComponent],
    imports: [
        BrowserModule,
        DialogModule.forRoot()
    ]
})
export class AppModule {
}

Parameters

components? any[]

Components that will be created dynamically within Dialog instances.
These components will be registered as entryComponents.

Returns

ModuleWithProviders ModuleWithProviders - A module to be imported in the application module.

In this article