Skip to content

Commit 4ff1e56

Browse files
author
Andrew Parys
committed
Updated to angular 9 rc1
1 parent 29736f2 commit 4ff1e56

File tree

8 files changed

+22
-15
lines changed

8 files changed

+22
-15
lines changed

src/MyLiverpool.Web.WebApiNext/ClientApp/angular.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,8 @@
102102
}
103103
}
104104
},
105-
"defaultProject": "angular2app"
105+
"defaultProject": "angular2app",
106+
"cli": {
107+
"analytics": "f954608e-7925-46a8-a39e-073cea82d1de"
108+
}
106109
}

src/MyLiverpool.Web.WebApiNext/ClientApp/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "asp.net",
33
"version": "1.0.0",
44
"scripts": {
5+
"postinstall": "ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points",
56
"run": "ng serve --hmr false --proxy-config proxy.conf.json",
67
"run2": "ng serve --proxy-config proxy.conf.json",
78
"build": "ng build --prod --build-optimizer",

src/MyLiverpool.Web.WebApiNext/ClientApp/src/app/app.module.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NgModule, LOCALE_ID } from '@angular/core';
1+
import { NgModule, LOCALE_ID, Injectable } from '@angular/core';
22
import {
33
BrowserModule,
44
HammerGestureConfig,
@@ -24,6 +24,7 @@ registerLocaleData(localeRU);
2424

2525
declare var Hammer: any;
2626

27+
@Injectable()
2728
export class MyHammerConfig extends HammerGestureConfig {
2829
buildHammer(element: HTMLElement) {
2930
const mc = new Hammer(element, {

src/MyLiverpool.Web.WebApiNext/ClientApp/src/app/base/signalr/signalr.module.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { EnsureModuleLoadedOnceGuard } from '@domain/base/ensure-module-loaded-o
1111
})
1212
export class SignalRModule extends EnsureModuleLoadedOnceGuard {
1313

14-
static forRoot(): ModuleWithProviders {
14+
static forRoot(): ModuleWithProviders<SignalRModule> {
1515
return {
1616
ngModule: SignalRModule,
1717
providers: [

src/MyLiverpool.Web.WebApiNext/ClientApp/src/app/chat/chat-window/chat-window.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class ChatWindowComponent implements OnInit, AfterContentChecked {
2323
public items: ChatMessage[] = new Array<ChatMessage>();
2424
public selectedEditIndex: number = null;
2525

26-
@ViewChild('chatInput', { static: false })private elementRef: EditorComponent;
26+
@ViewChild('chatInput')private elementRef: EditorComponent;
2727
@Input() public type: number;
2828
@Input() public height = 200;
2929

src/MyLiverpool.Web.WebApiNext/ClientApp/src/app/comments/shared/comment-detail/comment-detail.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class CommentDetailComponent extends ObserverComponent implements OnInit
2626
@Input() public matchId: number;
2727
@Input() public parent: Comment;
2828
@Input() public type: number;
29-
@ViewChild('replyInput', { static: false }) private elementRef: EditorComponent;
29+
@ViewChild('replyInput') private elementRef: EditorComponent;
3030

3131
public commentForm: FormGroup;
3232
public isEditMode = false;

src/MyLiverpool.Web.WebApiNext/ClientApp/src/app/pms/shared/pm-reply/pm-reply.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class PmReplyComponent implements OnInit, AfterViewInit {
1717
@Input() public userId: number;
1818
@Input() public title: string;
1919
@Output() public close = new EventEmitter();
20-
@ViewChild('mpInput', { static: false })private elementRef: EditorComponent;
20+
@ViewChild('mpInput')private elementRef: EditorComponent;
2121

2222
constructor(private service: PmService,
2323
private snackBar: MatSnackBar,
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
{
2-
"extends": "../tsconfig.json",
3-
"compilerOptions": {
4-
"baseUrl": "./",
5-
"outDir": "../out-tsc/app"
6-
},
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"baseUrl": "./",
5+
"outDir": "../out-tsc/app"
6+
}
7+
,
78
"files": [
8-
"main.ts",
9-
"polyfills.ts"
9+
"main.browser.ts",
10+
"polyfills/polyfills.ts",
11+
"app/editor/tiny-module/tiny.module.ts"
1012
],
1113
"include": [
1214
"**/*.d.ts"
1315
]
14-
}
16+
}

0 commit comments

Comments
 (0)