Skip to content

Commit b25efff

Browse files
authored
Merge pull request #262 from enercity/feature/angular-19
Upgrade to Angular 19
2 parents ab88f04 + ff57889 commit b25efff

File tree

13 files changed

+13906
-8171
lines changed

13 files changed

+13906
-8171
lines changed

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v22

angular.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,15 @@
1818
"prefix": "app",
1919
"architect": {
2020
"build": {
21-
"builder": "@angular-devkit/build-angular:browser",
21+
"builder": "@angular-devkit/build-angular:application",
2222
"options": {
23-
"outputPath": "dist/ngx-md-demo",
23+
"outputPath": {
24+
"base": "dist/ngx-md-demo"
25+
},
2426
"index": "apps/ngx-md-demo/src/index.html",
25-
"main": "apps/ngx-md-demo/src/main.ts",
26-
"polyfills": "apps/ngx-md-demo/src/polyfills.ts",
27+
"polyfills": [
28+
"apps/ngx-md-demo/src/polyfills.ts"
29+
],
2730
"tsConfig": "apps/ngx-md-demo/tsconfig.app.json",
2831
"inlineStyleLanguage": "scss",
2932
"allowedCommonJsDependencies": [
@@ -36,7 +39,8 @@
3639
"styles": [
3740
"apps/ngx-md-demo/src/styles.scss"
3841
],
39-
"scripts": []
42+
"scripts": [],
43+
"browser": "apps/ngx-md-demo/src/main.ts"
4044
},
4145
"configurations": {
4246
"production": {
@@ -61,9 +65,7 @@
6165
"outputHashing": "all"
6266
},
6367
"development": {
64-
"buildOptimizer": false,
6568
"optimization": false,
66-
"vendorChunk": true,
6769
"extractLicenses": false,
6870
"sourceMap": true,
6971
"namedChunks": true

apps/ngx-md-demo/src/app/app.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { Component } from '@angular/core';
22

33
@Component({
4-
selector: 'md-demo',
5-
templateUrl: './app.component.html',
4+
selector: 'md-demo',
5+
templateUrl: './app.component.html',
6+
standalone: false
67
})
78
export class AppComponent {
89
links = [

apps/ngx-md-demo/src/app/home/home.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ import 'prismjs/components/prism-javascript';
1212
import 'prismjs/components/prism-perl';
1313

1414
@Component({
15-
selector: 'md-home',
16-
templateUrl: `./home.component.html`,
17-
styleUrls: [`./home.component.scss`],
15+
selector: 'md-home',
16+
templateUrl: `./home.component.html`,
17+
styleUrls: [`./home.component.scss`],
18+
standalone: false
1819
})
1920
export class HomeComponent implements OnInit {
2021
/*

apps/ngx-md-demo/src/app/path/path.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { Component, OnInit } from '@angular/core';
22

33
@Component({
4-
selector: 'md-path',
5-
templateUrl: './path.component.html',
6-
styleUrls: ['./path.component.scss'],
4+
selector: 'md-path',
5+
templateUrl: './path.component.html',
6+
styleUrls: ['./path.component.scss'],
7+
standalone: false
78
})
89
export class PathComponent implements OnInit {
910
constructor() {}

apps/ngx-md-demo/src/app/tables/tables.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { Component, OnInit } from '@angular/core';
22

33
@Component({
4-
selector: 'md-tables',
5-
templateUrl: './tables.component.html',
6-
styleUrls: ['./tables.component.scss'],
4+
selector: 'md-tables',
5+
templateUrl: './tables.component.html',
6+
styleUrls: ['./tables.component.scss'],
7+
standalone: false
78
})
89
export class TablesComponent implements OnInit {
910
data = `

apps/ngx-md-demo/src/app/todo/todo.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { Component, OnInit } from '@angular/core';
22

33
@Component({
4-
selector: 'md-todo',
5-
templateUrl: './todo.component.html',
6-
styleUrls: ['./todo.component.scss'],
4+
selector: 'md-todo',
5+
templateUrl: './todo.component.html',
6+
styleUrls: ['./todo.component.scss'],
7+
standalone: false
78
})
89
export class TodoComponent implements OnInit {
910
data = `

apps/ngx-md-demo/src/app/variable-bind/variable-bind.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { Component } from '@angular/core';
22

33
@Component({
4-
selector: 'md-variable-bind',
5-
templateUrl: './variable-bind.component.html',
6-
styleUrls: ['./variable-bind.component.scss'],
4+
selector: 'md-variable-bind',
5+
templateUrl: './variable-bind.component.html',
6+
styleUrls: ['./variable-bind.component.scss'],
7+
standalone: false
78
})
89
export class VariableBindComponent {
910
public marked = '# Heading';

0 commit comments

Comments
 (0)