mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 14:01:16 +08:00
Fix null valued props
This commit is contained in:
parent
587d6c7bd2
commit
571a0e27f1
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user