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