dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_ParticleModule cluster_ParticleModule_declarations cluster_ParticleModule_exports ParticleBackgroundDirective ParticleBackgroundDirective ParticleModule ParticleModule ParticleBackgroundDirective->ParticleModule ParticleBackgroundDirective ParticleBackgroundDirective ParticleModule->ParticleBackgroundDirective

File

projects/commons/src/lib/elements/particle/particle.module.ts

import { NgModule } from '@angular/core';
import { ParticlesModule } from 'angular-particle';


import { ParticleBackgroundDirective } from './directives/background';
import { mathRandom } from './constants';

@NgModule({
    imports: [
        ParticlesModule,
    ],
    declarations: [
        ParticleBackgroundDirective,
    ],
    providers: [
        {
            provide: 'Math',
            useValue: {
                random: mathRandom,
            },
        },
    ],
    exports: [
        ParticleBackgroundDirective,
    ],
})

export class ParticleModule {}

result-matching ""

    No results matching ""