use cmd to define ui controls with angular