const prices = Array.from(document.querySelectorAll('.watch__price'))
.map((item) => parseInt(item.textContent.match(/\d+/)))
async getUsers() {
const users = await query('users');
const members = meeting['members'].map((user_id) => users.collection.findOne({id: user_id}));
return [...meetings, members]
}
import {Directive, HostListener, Input} from '@angular/core';
@Directive({
selector: 'input[appInputDenySymbols]'
})
export class InputDenySymbolsDirective {
@Input() appInputDenySymbols: string;
@HostListener('keydown', ['$event']) onKeyDown(event) {
if (this.appInputDenySymbols.indexOf(event.key) !== -1) {
event.preventDefault();
}
}
}
<input appInputDenySymbols='1234567890' >