<p dir="auto">In angular 1 we transform form data in this way <code class="notranslate">ng-model-options="{ getterSetter: true }"</code>. In my plunk <a href="http://plnkr.co/edit/hWuOlOQn9iTlTKEL38sM?p=preview" rel="nofollow">http://plnkr.co/edit/hWuOlOQn9iTlTKEL38sM?p=preview</a> emails input can be a comma delimited email list. How could it be implemented without moving transform logic to the <code class="notranslate">onSubmit</code> method?</p>
<p dir="auto">I found the <code class="notranslate">ControlValueAccessor</code>, <code class="notranslate">DefaultValueAccessor</code> and <code class="notranslate">NumberValueAccessor</code> classes, but I don't know how to use my own on a single input.</p>
<p dir="auto">Implementing custom formatters and parsers is a common way to extend control types in Angular 1.</p>
<p dir="auto">I think there are two ways to do it in Angular 2:</p>
<ul dir="auto">
<li>Implement parsers and formatters similar to Angular 1</li>
<li>Make defining new value accessors easier, so the use case can be handled by defining a new accessor.</li>
</ul>