Angular custom elements input

Angular 2 custom form input; We need to implement two things to achieve that: A component that provides the logic of your form component. It doesn't need an input since that will be provided by ngModel itself; A custom ControlValueAccessor that will implement the bridge between this component and ngModel / ngControl 2. The ElementRef object gives us direct access to the DOM element for the directive through the nativeElement property. 3. We have used input binding to accept data from template to directive. Here we are getting blue color from a component template using an input binding. Step 4: Register the custom directive in our app.module.ts file

Vive tracker without base station