3.0.0 • Published 3 months ago

ng2pairs v3.0.0

Weekly downloads
55
License
-
Repository
github
Last release
3 months ago

Ng2pairs

This project was generated using Angular CLI version 19.2.0.

Usage

To use this module in your @angular application simply import the module

import { PairsModule } from 'ng2pairs';

@NgModule({
    declarations: [],
    imports: [PairsModule.forRoot()],
})
export class ExampleModule {}

If you want to use custom pictures then utilize PairsService as follows:

import { Component, OnInit } from '@angular/core';
import { PairsService } from 'ng2pairs';

@Component({
...
})
export class MyComponent implements OnInit {

    constructor(private pairsService: PairsService) {        
    }

    ngOnInit() {
        this.pairsService.setImages(['path-to-image1/image1.png', 'path-to-image2/image2.png']);
    }
}

Above can be applied for custom cssClasses for pairs, just callthis.pairsService.setCssClasses('classRed', 'classBlue')`

Code scaffolding

Angular CLI includes powerful code scaffolding tools. To generate a new component, run:

ng generate component component-name

For a complete list of available schematics (such as components, directives, or pipes), run:

ng generate --help

Building

To build the library, run:

ng build ng2pairs

This command will compile your project, and the build artifacts will be placed in the dist/ directory.

Publishing the Library

Once the project is built, you can publish your library by following these steps:

  1. Navigate to the dist directory:

    cd dist/ng2pairs
  2. Run the npm publish command to publish your library to the npm registry:

    npm publish

Additional Resources

For more information on using the Angular CLI, including detailed command references, visit the Angular CLI Overview and Command Reference page.

3.0.0

3 months ago

0.0.1

3 months ago

0.0.3

3 months ago

0.0.2

3 months ago

0.0.5

3 months ago

0.0.4

3 months ago

2.1.0

3 months ago

2.0.0

2 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.4

6 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago