# CustomLib

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.14.

## Code scaffolding

Run `ng generate component component-name --project custom-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project custom-lib`.
> Note: Don't forget to add `--project custom-lib` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build custom-lib` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build custom-lib`, go to the dist folder `cd dist/custom-lib` and run `npm publish`.

## Running unit tests

Run `ng test custom-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

## Usage

parent.html

<lib-login (getData)='displayLoginDetails($event)' (navigateToForgotPwd)="navigate($event)"
    [backgroundImage]="backgroundImage" [logo]="logo"></lib-login>

parent.ts

  backgroundImage: any = './../../assets/images/background.jpg'; //(Should pass background image URL)
  logo: any = './../../assets/images/logo.jpg'; //(Should pass logo image URL)
  displayLoginDetails(value) { //Inside value user will get user name and password
  }

  navigate(value) { //user will get forgot password response
  }


cheild.ts
  @Input() backgroundImage: any;
  @Input() logo: any;
  @Output() getData = new EventEmitter();
  @Output() navigateToForgotPwd = new EventEmitter();