Fix null valued props

This commit is contained in:
Tom Coleman 2022-10-13 17:48:32 +11:00
parent 587d6c7bd2
commit 571a0e27f1
3 changed files with 8 additions and 8 deletions

View File

@ -7,9 +7,9 @@ import { Component, ComponentFactoryResolver, ElementRef } from '@angular/core';
Generated template: {{ generatedTemplate }}`,
})
export class AttributeSelectorComponent {
generatedTemplate = '';
generatedTemplate!: string;
selectors = '';
selectors!: string;
constructor(public el: ElementRef, private resolver: ComponentFactoryResolver) {
const factory = this.resolver.resolveComponentFactory(AttributeSelectorComponent);

View File

@ -7,9 +7,9 @@ import { Component, ComponentFactoryResolver, ElementRef } from '@angular/core';
Generated template: {{ generatedTemplate }}`,
})
export class ClassSelectorComponent {
generatedTemplate = '';
generatedTemplate!: string;
selectors = '';
selectors!: string;
constructor(public el: ElementRef, private resolver: ComponentFactoryResolver) {
const factory = this.resolver.resolveComponentFactory(ClassSelectorComponent);

View File

@ -7,9 +7,9 @@ import { Component, ComponentFactoryResolver, ElementRef } from '@angular/core';
Generated template: {{ generatedTemplate }}`,
})
export class MultipleSelectorComponent {
generatedTemplate = '';
generatedTemplate!: string;
selectors = '';
selectors!: string;
constructor(public el: ElementRef, private resolver: ComponentFactoryResolver) {
const factory = this.resolver.resolveComponentFactory(MultipleClassSelectorComponent);
@ -25,9 +25,9 @@ export class MultipleSelectorComponent {
Generated template: {{ generatedTemplate }}`,
})
export class MultipleClassSelectorComponent {
generatedTemplate = '';
generatedTemplate!: string;
selectors = '';
selectors!: string;
constructor(public el: ElementRef, private resolver: ComponentFactoryResolver) {
const factory = this.resolver.resolveComponentFactory(MultipleClassSelectorComponent);