UNPKG

@hicoder/angular-cli

Version:

Angular UI componenets and service generator. It works with the mean-rest-express package to generate the end to end web application. The input to this generator is the Mongoose schema defined for the express application. mean-rest-express exposes the Res

47 lines (43 loc) 999 B
import { Component, OnInit, Input } from '@angular/core'; import { trigger, state, style, animate, transition, } from '@angular/animations'; import { <%-SchemaName%>ListViewComponent } from './<%-schemaName%>-list-view.component'; @Component({ animations: [ trigger( 'inOutAnimation', [ transition( ':enter', [ style({ opacity: 0 }), animate('0.5s ease-out', style({ opacity: 1 })) ] ), transition( ':leave', [ style({ opacity: 1 }), animate('0.5s ease-in', style({ opacity: 0 })) ] ) ] ) ], <%- include(`/widgets/list-view/component.template.custom.ts`)%> }) export class <%-SchemaName%><%-ComponentClassName%>Component extends <%-SchemaName%>ListViewComponent implements OnInit { constructor() { super(); } override ngOnInit() { super.ngOnInit(); } }