Skip to content

Commit 2d3e674

Browse files
author
Pierre Clavequin
committed
chore: update to Angular 19
ng update @angular/core@19 @angular/cli@19
1 parent 88de967 commit 2d3e674

File tree

8 files changed

+3504
-2932
lines changed

8 files changed

+3504
-2932
lines changed

angular.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@
1111
"schematics": {},
1212
"architect": {
1313
"build": {
14-
"builder": "@angular-devkit/build-angular:browser",
14+
"builder": "@angular-devkit/build-angular:application",
1515
"options": {
16-
"outputPath": "dist",
16+
"outputPath": {
17+
"base": "dist"
18+
},
1719
"index": "index.html",
18-
"main": "demo/main.ts",
19-
"polyfills": "demo/polyfills.ts",
20+
"polyfills": [
21+
"demo/polyfills.ts"
22+
],
2023
"tsConfig": "tsconfig-demo.json",
2124
"styles": [
2225
"./src/lightbox.css",
@@ -25,7 +28,8 @@
2528
"assets": [
2629
{ "glob": "**/*", "input": "./demo/img/", "output": "./demo/img/" }
2730
],
28-
"scripts": []
31+
"scripts": [],
32+
"browser": "demo/main.ts"
2933
},
3034
"configurations": {
3135
"production": {
@@ -34,9 +38,7 @@
3438
"sourceMap": true,
3539
"namedChunks": false,
3640
"aot": true,
37-
"extractLicenses": true,
38-
"vendorChunk": false,
39-
"buildOptimizer": true
41+
"extractLicenses": true
4042
}
4143
}
4244
},

demo/app.component.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { Component } from '@angular/core';
55
import { IAlbum, IEvent, Lightbox, LIGHTBOX_EVENT, LightboxConfig, LightboxEvent } from '../src';
66

77
@Component({
8-
selector: 'demo',
9-
template: `
8+
selector: 'demo',
9+
template: `
1010
<div class="column has-text-centered">
1111
<div class="img-row" *ngFor="let image of albums; let i=index">
1212
<img class="img-frame" [src]="image.thumb" (click)="open(i)"/>
@@ -18,9 +18,10 @@ import { IAlbum, IEvent, Lightbox, LIGHTBOX_EVENT, LightboxConfig, LightboxEvent
1818
</div>
1919
</div>
2020
`,
21-
host: {
22-
class: 'columns'
23-
}
21+
host: {
22+
class: 'columns'
23+
},
24+
standalone: false
2425
})
2526
export class AppComponent {
2627
public albums: Array<IAlbum>;

0 commit comments

Comments
 (0)