0.0.25 • Published 3 years ago

@virket/contacts-core v0.0.25

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

Virket's Contacts core module

Contacts module that implements

  • Contact types (interfaces)
  • Contact Model
  • Repository
  • Service
  • State management (actions, effects, reducers, selectors)

Using your module in an Ionic 5 app

import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
...


// Import the module
import { ContactsCoreModule } from 'virket/contacts-core/dist/src';

@NgModule({
  declarations: [AppComponent],
  entryComponents: [],
  imports: [
    ...
    StoreModule.forRoot({}),
    EffectsModule.forRoot([]),
    ...
    ContactsCoreModule.forRoot({
      apiUrl: environment.apiUrl,
      instanceName: environment.instanceName
    }),
    ...
  ],
  providers: [
    ...
    ContactStore,
    ...
  ],
  bootstrap: [AppComponent]
})
export class AppModule {}

Compile this module

https://stackoverflow.com/questions/60290309/error-ng6002-appears-in-the-ngmodule-imports-of-appmodule-but-could-not-be-res

  • OPTION 1: add this to package.json => scripts:{...}

"postinstall": "ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points"

  • then run: npm run postinstall

  • OPTION 2: In Your "tsconfig.app.json" Add Following Lines:

"angularCompilerOptions": { ... "enableIvy": false }

0.0.24

3 years ago

0.0.25

3 years ago

0.0.23

4 years ago

0.0.20

4 years ago

0.0.21

4 years ago

0.0.22

4 years ago

0.0.18

4 years ago

0.0.19

4 years ago

0.0.17

4 years ago

0.0.16

4 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago