@katemihalikova/sample
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Sample Angular Module

Install

npm install --save @katemihalikova/sample

Configure

Add SampleModule.forRoot() to your root module:

import { SampleModule } from '@katemihalikova/sample';

@NgModule({
  ...
  imports: [
    ...
    SampleModule.forRoot(),
  ],
  ...
})
export class AppModule {}

Optionally also add SampleModule to your lazy-loaded modules:

import { SampleModule } from '@katemihalikova/sample';

@NgModule({
  ...
  imports: [
    ...
    SampleModule,
  ],
  ...
})
export class LazyLoadedModule {}

Use

Get sample string

import { SampleService } from '@katemihalikova/sample';
constructor(
  ...
  private sampleService: SampleService,
) {}

sampleString = this.sampleService.getSample();

Component with sample string getter

<km-sample></km-sample>

Readme

Keywords

none

Package Sidebar

Install

npm i @katemihalikova/sample

Weekly Downloads

1

Version

1.0.1

License

none

Unpacked Size

10.3 kB

Total Files

14

Last publish

Collaborators

  • katemihalikova