Skip to content

Commit cef7d69

Browse files
Quentigusevilaliv3
authored andcommitted
rename Flow to FlowConfig
1 parent 1061d53 commit cef7d69

File tree

4 files changed

+26
-20
lines changed

4 files changed

+26
-20
lines changed

README.md

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The purpose of this package is to create a wrapper for Angular for fileupload us
1111

1212
[https://stackblitz.com/edit/ngx-flow-example](https://stackblitz.com/edit/ngx-flow-example)
1313

14-
You can also find example source code in the `src` folder.
14+
You can also find example source code in the `projects/ngx-flow-demo` folder.
1515

1616
## Roadmap
1717

@@ -33,22 +33,28 @@ You can also find example source code in the `src` folder.
3333

3434
## Compatibility
3535

36-
| Angular | @flowjs/ngx-flow |
37-
| :-----: | :--------------: |
38-
| 19 | ^19.0.0 |
39-
| 18 | ^18.0.0 |
40-
| 17 | 0.8.1 |
41-
| 16 | 0.7.2 |
42-
| 15 | \- |
43-
| 14 | 0.6.0 |
44-
| 13 | 0.5.0 |
45-
| 12 | \- |
46-
| 6 -> 11 | 0.4.6 |
36+
From the v18, we aligned the main version of this library with Angular (and Angular CLI).
37+
38+
For previous versions, use the matrix below:
39+
40+
| Angular | @flowjs/ngx-flow |
41+
| :-----: | :---------------: |
42+
| 17 | 0.8.1 |
43+
| 16 | 0.7.2 |
44+
| 15 | _(not available)_ |
45+
| 14 | 0.6.0 |
46+
| 13 | 0.5.0 |
47+
| 12 | _(not available)_ |
48+
| 6 -> 11 | 0.4.6 |
4749

4850

4951
## Install
5052

51-
`npm install @flowjs/flow.js @flowjs/ngx-flow`
53+
Install dependencies :
54+
55+
```bash
56+
npm install @flowjs/flow.js @flowjs/ngx-flow
57+
```
5258

5359
Import in your module:
5460

projects/ngx-flow-demo/src/app/app.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { AsyncPipe, DecimalPipe, NgClass, PercentPipe } from '@angular/common';
22
import { AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, inject, OnDestroy, ViewChild } from '@angular/core';
3-
import { Flow, FlowButton, FlowDrop, FlowSrc } from '@flowjs/ngx-flow';
3+
import { FlowButton, FlowConfig, FlowDrop, FlowSrc } from '@flowjs/ngx-flow';
44
import { Subscription } from 'rxjs';
55

66
@Component({
@@ -13,7 +13,7 @@ import { Subscription } from 'rxjs';
1313

1414
// NgxFlowModule,
1515

16-
Flow,
16+
FlowConfig,
1717
FlowDrop,
1818
FlowSrc,
1919
FlowButton
@@ -26,7 +26,7 @@ export class AppComponent implements AfterViewInit, OnDestroy {
2626

2727
private cd = inject(ChangeDetectorRef);
2828

29-
@ViewChild('flow', { static: false }) flow?: Flow;
29+
@ViewChild('flow', { static: false }) flow?: FlowConfig;
3030

3131
autoUploadSubscription?: Subscription;
3232

projects/ngx-flow/src/lib/flow.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export interface NgxFlowEvent {
2121
selector: '[flowConfig]',
2222
exportAs: 'flow'
2323
})
24-
export class Flow {
24+
export class FlowConfig {
2525

2626
protected flowConstructor = inject(FlowInjectionToken);
2727
protected platform = inject(PLATFORM_ID);
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
import { NgModule } from '@angular/core';
22
import { FlowButton } from './button.directive';
33
import { FlowDrop } from './drop.directive';
4-
import { Flow } from './flow.directive';
4+
import { FlowConfig } from './flow.directive';
55
import { FlowSrc } from './src.directive';
66

77
const directives = [
88
FlowButton,
99
FlowSrc,
1010
FlowDrop,
11-
Flow,
11+
FlowConfig,
1212
];
1313

1414
@NgModule({
1515
imports: [...directives],
1616
exports: directives,
1717
})
18-
export class NgxFlowModule {}
18+
export class NgxFlowModule { }

0 commit comments

Comments
 (0)