Skip to content

Commit 465d35a

Browse files
committed
refactor(package): added exportAs property to the components
1 parent a83634e commit 465d35a

File tree

3 files changed

+15
-30
lines changed

3 files changed

+15
-30
lines changed

README.md

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ View all the directives and components in action at [https://angular-material-ex
103103
<a name="peerDependencies"/>
104104

105105
## Requirements (peer dependencies):
106-
- [angular animations v6.0.5](https://www.npmjs.com/package/@angular/animations)
107-
- [angular forms v6.0.5](https://www.npmjs.com/package/@angular/forms)
108-
- [angular cdk v6.2.1](https://www.npmjs.com/package/@angular/cdk)
109-
- [angular material v6.2.1](https://www.npmjs.com/package/@angular/material)
106+
- [angular animations v6.1.0](https://www.npmjs.com/package/@angular/animations)
107+
- [angular forms v6.1.0](https://www.npmjs.com/package/@angular/forms)
108+
- [angular cdk v6.4.2](https://www.npmjs.com/package/@angular/cdk)
109+
- [angular material v6.4.2](https://www.npmjs.com/package/@angular/material)
110110
- [angular material theme](https://material.angular.io/guide/getting-started#step-4-include-a-theme)
111111

112112
```bash
@@ -349,11 +349,10 @@ this will looks like -->
349349
## [Documentation](https://angular-material-extensions.github.io/password-strength/doc/index.html)
350350

351351
Please checkout the full documentation [here](https://angular-material-extensions.github.io//password-strength/doc/index.html)
352-
or follow the official [tutorial](https://angular-material-extensions.github.io//password-strength/getting-started)
352+
or follow the official [tutorial](https://angular-material-extensions.github.io/password-strength/getting-started)
353353

354354
---
355355

356-
357356
<a name="run-demo-app-locally"/>
358357

359358
## Run Demo App Locally
@@ -364,23 +363,9 @@ $ git clone https://github.com/angular-material-extensions/password-strength.git
364363
```
365364

366365
- link the **@angular-material-extensions/password-strength** package
367-
use gulp globally
368-
```bash
369-
$ gulp link
370-
```
371366

372-
use gulp locally
373-
```bash
374-
$ npx gulp link
375-
```
376-
for some mac os users, you may use the sudo command with gulp
377-
use gulp with sudo
378367
```bash
379-
$ sudo gulp link
380-
```
381-
or locally
382-
```bash
383-
$ sudo npx gulp link
368+
$ gulp link
384369
```
385370

386371
- navigate to the demo app directory
@@ -437,11 +422,13 @@ $ npm run lint
437422

438423
## Other Angular Libraries
439424
- [ngx-auth-firebaseui](https://github.com/AnthonyNahas/ngx-auth-firebaseui)
425+
- [ngx-linkifyjs](https://github.com/AnthonyNahas/ngx-linkifyjs)
426+
- [@angular-material-extensions/link-preview](https://github.com/angular-material-extensions/link-preview)
427+
- [@angular-material-extensions/google-maps-autocomplete](https://github.com/angular-material-extensions/google-maps-autocomplete)
440428
- [@angular-material-extensions/pages](https://github.com/angular-material-extensions/pages)
441429
- [@angular-material-extensions/contacts](https://github.com/angular-material-extensions/contacts)
442430
- [@angular-material-extensions/faq](https://github.com/angular-material-extensions/faq)
443431
- [@angular-material-extensions/cards](https://github.com/angular-material-extensions/cards)
444-
- [@angular-material-extensions/google-maps-autocomplete](https://github.com/angular-material-extensions/google-maps-autocomplete)
445432
- [@angular-material-extensions/combination-generator](https://github.com/angular-material-extensions/combination-generator)
446433

447434
---
@@ -458,6 +445,8 @@ $ npm run lint
458445

459446
---
460447

448+
<a name="license"/>
449+
461450
## License
462451

463452
Copyright (c) 2018 [Anthony Nahas](https://github.com/AnthonyNahas). Licensed under the MIT License (MIT)
Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
1-
import {Component, Input, OnInit} from '@angular/core';
1+
import {Component, Input} from '@angular/core';
22
import {MatPasswordStrengthComponent} from '../mat-password-strength/mat-password-strength.component';
33

44
@Component({
55
selector: 'mat-password-strength-info',
6+
exportAs: 'matPasswordStrengthInfo',
67
templateUrl: './mat-password-strength-info.component.html',
78
styleUrls: ['./mat-password-strength-info.component.scss']
89
})
9-
export class MatPasswordStrengthInfoComponent implements OnInit {
10+
export class MatPasswordStrengthInfoComponent {
1011

1112
@Input()
1213
passwordComponent: MatPasswordStrengthComponent;
1314

14-
constructor() {
15-
}
16-
17-
ngOnInit() {
18-
}
19-
2015
}

src/module/component/mat-password-strength/mat-password-strength.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export enum Criteria {
1717

1818
@Component({
1919
selector: 'mat-password-strength',
20+
exportAs: 'matPasswordStrength',
2021
templateUrl: './mat-password-strength.component.html',
2122
styleUrls: ['./mat-password-strength.component.scss']
2223
})

0 commit comments

Comments
 (0)