i have requirement where i can have a predefined suffix for email, so user just has to enter the first part of the email... so lets say my email id is: [email protected]
so the input would have suffix of gmail.com and user should have to enter only "abc". so what i want to achieve is: for display value should be abc, but for ngModel value should be "[email protected]".
how can i achieve this using directives??
i have basic directive ready:plunker
but not sure how to use, link or compile function to achieve above result