Skip to content

Commit

Permalink
Merge pull request #262 from enercity/feature/angular-19
Browse files Browse the repository at this point in the history
Upgrade to Angular 19
  • Loading branch information
dimpu authored Jan 28, 2025
2 parents ab88f04 + ff57889 commit b25efff
Show file tree
Hide file tree
Showing 13 changed files with 13,906 additions and 8,171 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v22
16 changes: 9 additions & 7 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-devkit/build-angular:application",
"options": {
"outputPath": "dist/ngx-md-demo",
"outputPath": {
"base": "dist/ngx-md-demo"
},
"index": "apps/ngx-md-demo/src/index.html",
"main": "apps/ngx-md-demo/src/main.ts",
"polyfills": "apps/ngx-md-demo/src/polyfills.ts",
"polyfills": [
"apps/ngx-md-demo/src/polyfills.ts"
],
"tsConfig": "apps/ngx-md-demo/tsconfig.app.json",
"inlineStyleLanguage": "scss",
"allowedCommonJsDependencies": [
Expand All @@ -36,7 +39,8 @@
"styles": [
"apps/ngx-md-demo/src/styles.scss"
],
"scripts": []
"scripts": [],
"browser": "apps/ngx-md-demo/src/main.ts"
},
"configurations": {
"production": {
Expand All @@ -61,9 +65,7 @@
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
Expand Down
5 changes: 3 additions & 2 deletions apps/ngx-md-demo/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { Component } from '@angular/core';

@Component({
selector: 'md-demo',
templateUrl: './app.component.html',
selector: 'md-demo',
templateUrl: './app.component.html',
standalone: false
})
export class AppComponent {
links = [
Expand Down
7 changes: 4 additions & 3 deletions apps/ngx-md-demo/src/app/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ import 'prismjs/components/prism-javascript';
import 'prismjs/components/prism-perl';

@Component({
selector: 'md-home',
templateUrl: `./home.component.html`,
styleUrls: [`./home.component.scss`],
selector: 'md-home',
templateUrl: `./home.component.html`,
styleUrls: [`./home.component.scss`],
standalone: false
})
export class HomeComponent implements OnInit {
/*
Expand Down
7 changes: 4 additions & 3 deletions apps/ngx-md-demo/src/app/path/path.component.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'md-path',
templateUrl: './path.component.html',
styleUrls: ['./path.component.scss'],
selector: 'md-path',
templateUrl: './path.component.html',
styleUrls: ['./path.component.scss'],
standalone: false
})
export class PathComponent implements OnInit {
constructor() {}
Expand Down
7 changes: 4 additions & 3 deletions apps/ngx-md-demo/src/app/tables/tables.component.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'md-tables',
templateUrl: './tables.component.html',
styleUrls: ['./tables.component.scss'],
selector: 'md-tables',
templateUrl: './tables.component.html',
styleUrls: ['./tables.component.scss'],
standalone: false
})
export class TablesComponent implements OnInit {
data = `
Expand Down
7 changes: 4 additions & 3 deletions apps/ngx-md-demo/src/app/todo/todo.component.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'md-todo',
templateUrl: './todo.component.html',
styleUrls: ['./todo.component.scss'],
selector: 'md-todo',
templateUrl: './todo.component.html',
styleUrls: ['./todo.component.scss'],
standalone: false
})
export class TodoComponent implements OnInit {
data = `
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { Component } from '@angular/core';

@Component({
selector: 'md-variable-bind',
templateUrl: './variable-bind.component.html',
styleUrls: ['./variable-bind.component.scss'],
selector: 'md-variable-bind',
templateUrl: './variable-bind.component.html',
styleUrls: ['./variable-bind.component.scss'],
standalone: false
})
export class VariableBindComponent {
public marked = '# Heading';
Expand Down
Loading

0 comments on commit b25efff

Please sign in to comment.