if is not a number angular code example
Example: value should be numeric in angular check
if ( !isNaN(ticketPinOrEvent) && angular.isNumber(+ticketPinOrEvent)) {
}
if ( !isNaN(ticketPinOrEvent) && angular.isNumber(+ticketPinOrEvent)) {
}