UNPKG

carbon-components-angular

Version:
48 lines (44 loc) 1.59 kB
/*! * * Neutrino v0.0.0 | placeholder.component.d.ts * * Copyright 2014, 2018 IBM * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { OnInit, ViewContainerRef } from "@angular/core"; import { PlaceholderService } from "./placeholder.service"; /** * Using a modal, dialog (Tooltip, OverflowMenu), or any other component that draws out of the normal page flow * in your application *requires* this component (`ibm-placeholder`). * It would generally be placed near the end of your root app component template * (app.component.ts or app.component.html) as: * * ``` * <ibm-placeholder></ibm-placeholder> * ``` */ export declare class Placeholder implements OnInit { placeholderService: PlaceholderService; /** * Maintains a reference to the view DOM element of the `Placeholder`. */ viewContainerRef: ViewContainerRef; /** * Creates an instance of `Placeholder`. */ constructor(placeholderService: PlaceholderService); /** * Registers the components view with `PlaceholderService` */ ngOnInit(): void; }