use angular prop method for accessing element properties