// Angular imports // import { Component } from '@angular/core'; import { downgradeComponent } from '@angular/upgrade/static'; declare const angular: angular.IAngularStatic; // Components // // Interfaces // // Services // // Directives // @Component({ selector: 'fb-text-exempel', templateUrl: './fb-text-exempel.component.html' }) export class FbTextExempelComponent { hasValue: string = 'Fält med ifyllt värde'; missValue: string = ''; } // Angular downgrade //// angular.module('fasit') .directive('fbTextExempel', downgradeComponent({ component: FbTextExempelComponent, inputs: [], outputs: [] }) as angular.IDirectiveFactory);