Skip to content

Commit d4b181a

Browse files
committed
clean up types
1 parent bf0dd77 commit d4b181a

File tree

3 files changed

+7
-21
lines changed

3 files changed

+7
-21
lines changed

src/dialog/dialog-placeholder.component.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,18 @@ import { PlaceholderService } from "./../placeholder/placeholder.module";
3535
export class DialogPlaceholderComponent implements OnInit {
3636
/**
3737
* Maintains a reference to the view DOM element of the `DialogPlaceholderComponent`.
38-
* @type {ViewContainerRef}
39-
* @memberof DialogPlaceholderComponent
4038
*/
4139
@ViewChild("dialogPlaceholder", { read: ViewContainerRef }) viewContainerRef: ViewContainerRef;
4240

4341
/**
4442
* Creates an instance of `DialogPlaceholderComponent`.
45-
* @param {DialogPlaceholderService} placeholderService
46-
* @memberof DialogPlaceholderComponent
4743
*/
4844
constructor(public placeholderService: PlaceholderService) { }
4945

5046
/**
51-
* Initializes the component using `ModalService`.
52-
* @memberof DialogPlaceholderComponent
47+
* Initializes the component using `PlaceholderService`.
5348
*/
54-
ngOnInit(): void {
49+
ngOnInit() {
5550
console.warn("`ibm-dialog-placeholder` has been deprecated in favour of `ibm-placeholder`");
5651
this.placeholderService.registerViewContainerRef(this.viewContainerRef);
5752
}

src/modal/modal-placeholder.component.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ import { PlaceholderService } from "./../placeholder/placeholder.service";
4242
export class ModalPlaceholderComponent implements OnInit {
4343
/**
4444
* Maintains a reference to the view DOM element of the `ModalPlaceholderComponent`.
45-
* @type {ViewContainerRef}
46-
* @memberof ModalPlaceholderComponent
4745
*/
4846
@ViewChild("modalplaceholder", {read: ViewContainerRef }) viewContainerRef: ViewContainerRef;
4947

@@ -55,7 +53,7 @@ export class ModalPlaceholderComponent implements OnInit {
5553
/**
5654
* Initializes the component using `ModalService`.
5755
*/
58-
ngOnInit(): void {
56+
ngOnInit() {
5957
console.warn("`ibm-dialog-placeholder` has been deprecated in favour of `ibm-placeholder`");
6058
this.placeholderService.registerViewContainerRef(this.viewContainerRef);
6159
}

src/placeholder/placeholder.component.ts

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,33 +15,26 @@ import { PlaceholderService } from "./placeholder.service";
1515
* ```
1616
* <ibm-placeholder></ibm-placeholder>
1717
* ```
18-
*
19-
*
20-
* @export
21-
* @class ModalPlaceholderComponent
22-
* @implements {OnInit}
2318
*/
2419
@Component({
2520
selector: "ibm-placeholder",
2621
template: `<div #placeholder></div>`
2722
})
2823
export class Placeholder implements OnInit {
2924
/**
30-
* Maintains a reference to the view DOM element of the `ModalPlaceholderComponent`.
31-
* @type {ViewContainerRef}
32-
* @memberof ModalPlaceholderComponent
25+
* Maintains a reference to the view DOM element of the `Placeholder`.
3326
*/
3427
@ViewChild("placeholder", { read: ViewContainerRef }) viewContainerRef: ViewContainerRef;
3528

3629
/**
37-
* Creates an instance of `ModalPlaceholderComponent`.
30+
* Creates an instance of `Placeholder`.
3831
*/
3932
constructor(public placeholderService: PlaceholderService) { }
4033

4134
/**
42-
* Initializes the component using `ModalService`.
35+
* Registers the components view with `PlaceholderService`
4336
*/
44-
ngOnInit(): void {
37+
ngOnInit() {
4538
this.placeholderService.registerViewContainerRef(this.viewContainerRef);
4639
}
4740
}

0 commit comments

Comments
 (0)