# ngx-jonas-login

> A Reuseable Angular Component For Login

Latest version **0.1.3** (published 2019-07-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install ngx-jonas-login
pnpm add ngx-jonas-login
yarn add ngx-jonas-login
bun add ngx-jonas-login
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2019-07-23 |
| First published | 2019-07-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 116.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Zeshan Javed |
| Maintainers | zeshanjaved |
| Keywords | Component, Angular, Typescript, Jonas Login |

## Links

- npm: https://www.npmjs.com/package/ngx-jonas-login
- Repository: https://github.com/zeshanvirk/NgxLogin
- Issues: https://github.com/zeshanvirk/NgxLogin/issues
- npm.io page: https://npm.io/package/ngx-jonas-login

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^1.9.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.1.3 (latest) — 2019-07-23
- 0.1.2 — 2019-07-23
- 0.1.0 — 2019-07-22
- 0.0.8 — 2019-07-22
- 0.0.7 — 2019-07-22
- 0.0.6 — 2019-07-22
- 0.0.5 — 2019-07-22
- 0.0.4 — 2019-07-22
- 0.0.3 — 2019-07-22
- 0.0.2 — 2019-07-22

## README

# Angular Jonas Login

## Getting Started

### Installation

```
npm install ngx-jonas-login --save
```
And then include it in your module 

```ts
import {NgxJonasLoginModule} from 'ngx-jonas-login'
// ...

@NgModule({
  declarations: [
    ....
  ],
  imports: [
    ...
    NgxJonasLoginModule
  ]
})
export class AppModule { }
```

### Usage

```ts
import { Component, OnInit } from '@angular/core';

export class AppComponent implements OnInit {
  title = 'Client Login';
  logo = './images/white_-logo.png';
  background = './images/black_white_background.png';
  version = '2019.45.321'
  isJonasBrowser = true;
  
   onFormSubmit(event){
      //your logic here
  }
}
```
And then add it in your html 

```html
<ngx-jonas-login 
[title]="title" 
[version]="version" 
[logo]="logo" 
[backgroundImage]="background" 
[isJonasBrowser]="isJonasBrowser"
(onSubmit)="onFormSubmit($event)" 
>
</ngx-jonas-login>
```
And then add it in your global style.css 

```css
@import '../node_modules/bootstrap/dist/css/bootstrap.min.css';
@import '../node_modules/font-awesome/css/font-awesome.min.css'
```
OR in Angular.json/ Angular-cli.json

```json
  "styles": [
    'node_modules/bootstrap/dist/css/bootstrap.min.css',
    'node_modules/font-awesome/css/font-awesome.min.css'
  ]
```


### Settings

| Setting                        | Type       | Description                                                                                                                                                                                                                                                                                                                                              | Default Value       |
| :----------------------------- | :--------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------ |
| title                          | String     | Title of Login Form                                                                                                                                                                                                                                                                                                                                      | Login               |
| version                        | String     | Version No. of Application                                                                                                                                                                                                                                                                                                                               | ''                  |
| logo                           | String     | Logo that will be displayed on the top of form                                                                                                                                                                                                                                                                                                           | ''                  |
| backgroundImage                | String     | Background image of login form. (Default will be white)                                                                                                                                                                                                                                                                                                  | ''                  |
| isLoggingIn                 	 | Boolean    | Tells the componenet to show the spinner or not. Should be set to true after the login button clicked                                                                                                                                                                                                                                                    | false               |                                                                                                                                                                                                                                                                                                                        | false               |
| loginMessage                 	 | String     | The message that should appear next to spinner. Should be set after the login button clicked                                                                                                                                                                                                                                                             | ''                  |                                                                                                                                                                                                                                                                                                                        | false               |

### Callback Methods

- `onSubmit` - Return the values entered in the input fields.
  Example : (onSelect)="onFormSubmit($event)"

## Running unit tests

Run `ng test NgxJonasLogin` to execute the unit tests.

## Development

This project was generated with Angular CLI version 7.1.4.

## Contributions

Contributions are welcome, please open an issue and preferrably file a pull request.

### Opening Issue

Please share sample code using codesandbox.com or stackblitz.com to help me re-produce the issue.

## License

MIT License.

---
_Source: https://npm.io/package/ngx-jonas-login · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
