Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular 18 #317

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';

import { AppComponent } from './app.component';
import { NgxFileDropModule } from 'ngx-file-drop';
import { NgxFileDropComponent } from 'ngx-file-drop';


@NgModule({
Expand All @@ -40,7 +40,7 @@ import { NgxFileDropModule } from 'ngx-file-drop';
BrowserModule,
FormsModule,
HttpClientModule,
NgxFileDropModule
NgxFileDropComponent
],
providers: [],
bootstrap: [AppComponent]
Expand Down Expand Up @@ -130,9 +130,12 @@ export class AppComponent {
</tr>
</thead>
<tbody class="upload-name-style">
<tr *ngFor="let item of files; let i=index">
<td><strong>{{ item.relativePath }}</strong></td>
</tr>
@for(item of files; track $index) {
<tr>
<td><strong>{{ item.relativePath }}</strong></td>
</tr>
}

</tbody>
</table>
</div>
Expand Down
42 changes: 13 additions & 29 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,15 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-devkit/build-angular:application",
"options": {
"outputPath": "dist/ngx-file-drop-example",
"outputPath": {
"base": "dist/ngx-file-drop-example"
},
"index": "projects/ngx-file-drop-example/src/index.html",
"main": "projects/ngx-file-drop-example/src/main.ts",
"polyfills": "projects/ngx-file-drop-example/src/polyfills.ts",
"polyfills": [
"zone.js"
],
"tsConfig": "projects/ngx-file-drop-example/tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
Expand All @@ -63,7 +66,8 @@
"styles": [
"projects/ngx-file-drop-example/src/styles.scss"
],
"scripts": []
"scripts": [],
"browser": "projects/ngx-file-drop-example/src/main.ts"
},
"configurations": {
"production": {
Expand All @@ -88,9 +92,7 @@
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
Expand All @@ -102,36 +104,18 @@
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "ngx-file-drop-example:build:production"
"buildTarget": "ngx-file-drop-example:build:production"
},
"development": {
"browserTarget": "ngx-file-drop-example:build:development"
"buildTarget": "ngx-file-drop-example:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "ngx-file-drop-example:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/ngx-file-drop-example/src/test.ts",
"polyfills": "projects/ngx-file-drop-example/src/polyfills.ts",
"tsConfig": "projects/ngx-file-drop-example/tsconfig.spec.json",
"karmaConfig": "projects/ngx-file-drop-example/karma.conf.js",
"inlineStyleLanguage": "scss",
"assets": [
"projects/ngx-file-drop-example/src/favicon.ico",
"projects/ngx-file-drop-example/src/assets"
],
"styles": [
"projects/ngx-file-drop-example/src/styles.scss"
],
"scripts": []
"buildTarget": "ngx-file-drop-example:build"
}
}
}
Expand All @@ -148,4 +132,4 @@
"prefix": "ngx"
}
}
}
}
4 changes: 3 additions & 1 deletion browserslist
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@
last 2 versions
Firefox ESR
not dead
not IE 9-11 # For IE 9-11 support, remove 'not'.
not IE 9-11 # For IE 9-11 support, remove 'not'.
not kaios 2.5
not op_mini all
Loading