@raphy/ngx-equalizer
Version:
A library to equalize height and width of elements with Angular4+
69 lines (50 loc) • 1.98 kB
Markdown
# ngx-equalizer
[](https://www.npmjs.com/package/ngx-equalizer)
[](http://packagequality.com/#?package=ngx-equalizer)
[](https://travis-ci.org/Raphy/ngx-equalizer)
[](https://coveralls.io/github/Raphy/ngx-equalizer?branch=master)
[](https://www.npmjs.com/package/ngx-equalizer)
[](https://github.com/Raphy/ngx-equalizer/blob/master/LICENSE)
> A library to equalize height and width of elements with Angular4+
## Table of contents
- [Installation](#installation)
- [Contributing](#contributing)
- [Changelog](CHANGELOG.md)
## Installation
```shell
npm install --save ngx-equalizer
```
Once installed you need to import our main module:
```typescript
import { EqualizerModule } from 'ngx-equalizer';
```
The only remaining part is to list the imported module in your application module.
```typescript
@NgModule({
declarations: [AppComponent, ...],
imports: [EqualizerModule.forRoot(), ...],
bootstrap: [AppComponent]
})
export class AppModule {
}
```
## Contributing
* Before adding any new feature or a fix make sure to open an issue first!
Make sure you have `angular-cli` & `karma` installed globally.
```bash
$ npm install -g angular-cli karma
```
Clone the project, and install dependencies.
```bash
$ git clone https://github.com/raphy/ngx-equalizer.git
$ npm install
```
Create a new branch
```bash
$ git checkout -b feat/someFeature
```
Add tests & make sure everything is running properly
```bash
$ npm test
```
Commit & push, and make a pull request!