3.0.0 • Published 10 months ago

ng2pairs v3.0.0

Weekly downloads
55
License
-
Repository
github
Last release
10 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

10 months ago

0.0.1

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

2.1.0

10 months ago

2.0.0

3 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.4

7 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago