Angular Check If Variable Is An Integer A Polynomial