Optimize code

Use 'ng-' propertie names instead of the original properties to prevent
from showing ‘{{}}’ in them.