AngularCore

Source AngularCore

Angular Core Module that includes all components, services, directives and pipes that are described in this documentation. Besides of the core parts, several libraries are also included:

Example

  • module.ts
import {
  AngularCore,
} from 'angular-core';

@NgModule({
  ...
  imports: [
    CommonModule,
    AngularCore,
  ],
  ...
})
class SampleModule {
  constructor() { }
}
  • component.ts
import {
  createOpacityTransition,
  EvanBCCService,
  EvanBookmarkService,
  EvanQueue,
  EvanAlertService,
  EvanRoutingService,
  EvanModalService,
  EvanCoreService,
  EvanUtilService
} from 'angular-core';

@Component({
  selector: 'dapp-list',
  templateUrl: 'dapp-list.html',
  animations: [
    createOpacityTransition()
  ]
})

export class DAppListComponent implements OnInit, OnDestroy {
  private dappKeys: Array<string>;
  private dapps: any;
  private filterString: string;
  private loading: boolean;
  private clearQueue: Function
  private showItemPopover: string;

  constructor(
    public _DomSanitizer: DomSanitizer,
    public routing: EvanRoutingService,
    private bcc: EvanBCCService,
    private bookmarkService: EvanBookmarkService,
    private queue: EvanQueue,
    private alertService: EvanAlertService,
    private popoverCtrl: PopoverController,
    private modalService: EvanModalService,
    private core: EvanCoreService,
    public utils: EvanUtilService
  ) { }

  ...