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:
- CommonModule (
@angular/common
) - IonicModule (
ionic-angular
) - TranslateModule (
@ngx-translate/core
) - FormsModule (
@angular/forms
) - IonTagsInputModule (
ionic-tags-input
) - RouterModule (
@angular/router
) - NgCircleProgressModule (
ng-circle-progress
) - ZXingScannerModule (
qr-code-scanner module
)
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
) { }
...