Ercos Angular Components
Project must use Bootstrap v4.0.0+ and ReactiveFormsModule.
Import the module
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { ErcosComponentsModule } from '@ercos/components';
@NgModule({
imports: [BrowserModule, ErcosComponentsModule],
bootstrap: [AppComponent],
})
export class AppModule {}
Available components
erc-back-button-title
erc-countries-modal
erc-date-input
erc-date-picker
erc-empty-dataset
erc-image-input
erc-loader
erc-multi-select
erc-multi-select-filter
erc-password-input
erc-phone-input
erc-radio-input
erc-search-input
erc-select-input
-
erc-single-checkbox-input
(boolean) -
erc-multiple-checkbox-input
(array) erc-submit-button
erc-text-input
erc-textarea-input
erc-dropzone-input
Ercos App Versioning Service
Import the module
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { ErcosAppVersioningModule } from '@ercos/components';
@NgModule({
imports: [
BrowserModule,
ErcosAppVersioningModule.forRoot({
name: 'angular-libraries', // name of the app (will be used to retrieve the informations from the database)
environment: 'dev', // running environment 'dev'|'stage'|'prod' (matches the firebase projects)
})
],
bootstrap: [AppComponent],
})
export class AppModule {}