Skip to content

Commit

Permalink
Merge pull request #5 from zahmo/upgrade_ang17alpha
Browse files Browse the repository at this point in the history
Upgrade ang17alpha
  • Loading branch information
zahmo authored Feb 18, 2024
2 parents 1b0b5b1 + 3fe6b7f commit 97fca7e
Show file tree
Hide file tree
Showing 24 changed files with 6,247 additions and 7,004 deletions.
769 changes: 486 additions & 283 deletions README.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,18 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "demo:build"
"buildTarget": "demo:build"
},
"configurations": {
"production": {
"browserTarget": "demo:build:production"
"buildTarget": "demo:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "demo:build"
"buildTarget": "demo:build"
}
},
"test": {
Expand Down
12 changes: 10 additions & 2 deletions demo/app/demo-root.component.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
import { Component } from '@angular/core';
import { environment } from '../environments/environment';

@Component({
// tslint:disable-next-line:component-selector
selector: 'demo-root',
template: `<router-outlet></router-outlet>`
template: `<router-outlet></router-outlet>
<div>build:{{build}}, ver:{{env?.version}}, angular:{{env?.angularVersion}}, material:{{env?.materialVersion}}</div>
`
})
export class DemoRootComponent { }
export class DemoRootComponent {

env=environment;
build=this.env.production?"prd":"dev";

}
4 changes: 3 additions & 1 deletion demo/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export const environment = { production: true };

export const environment ={"production":true,"version":"17.0.0-alpha.0","angularVersion":"17.1.3","materialVersion":"17.1.2"}

4 changes: 3 additions & 1 deletion demo/environments/environment.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export const environment = { production: false };

export const environment ={"production":false,"version":"17.0.0-alpha.0","angularVersion":"17.1.3","materialVersion":"17.1.2"}

Loading

0 comments on commit 97fca7e

Please sign in to comment.