// Angular imports // import { Component, Input } from '@angular/core'; import { downgradeComponent } from '@angular/upgrade/static'; declare const angular: angular.IAngularStatic; // Components // // Interfaces // // Services // // Directives // @Component({ selector: 'fb-collapsible-exempel', templateUrl: './fb-collapsible-exempel.component.html' }) export class FbCollapsibleExempelComponent { @Input() showFullView: boolean; showHeadingIcon: boolean = true; expandOnInit: boolean = false; callOnExpand(): void { console.log('fb-collapsible expanderades'); } } // Angular downgrade //// angular.module('fasit') .directive('fbCollapsibleExempel', downgradeComponent({ component: FbCollapsibleExempelComponent, inputs: [], outputs: [] }) as angular.IDirectiveFactory);