(front) tsconfig use strict template
This commit is contained in:
@@ -27,7 +27,7 @@ export class AlbumsComponent implements OnInit {
|
||||
this.loadData();
|
||||
}
|
||||
|
||||
private editQuery(field: string, value: string, type: query_edit_type): void {
|
||||
private editQuery(field: string, value: Album, type: query_edit_type): void {
|
||||
// TODO Move this method to a service
|
||||
if (value[field] instanceof Array) {
|
||||
value[field] = value[field][0]
|
||||
@@ -49,12 +49,12 @@ export class AlbumsComponent implements OnInit {
|
||||
this.queryEdited = true;
|
||||
}
|
||||
|
||||
exlude(field: string, value: string): void {
|
||||
exlude(field: string, value: Album): void {
|
||||
this.editQuery(field, value, query_edit_type.exclude)
|
||||
this.loadData()
|
||||
}
|
||||
|
||||
select(field: string, value: string): void {
|
||||
select(field: string, value: Album): void {
|
||||
this.editQuery(field, value, query_edit_type.select)
|
||||
this.loadData()
|
||||
}
|
||||
|
||||
@@ -16,5 +16,8 @@
|
||||
"es2018",
|
||||
"dom"
|
||||
]
|
||||
},
|
||||
"angularCompilerOptions": {
|
||||
"strictTemplates": true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user