[enter link description here][1]First of all - let me make it clear that I am very new to angular. Please pardon me if you find something stupid.
Objective - I am trying to make a custom spell checker. In that I want the ziggy redline when ever a user will press a space bar(in case the spelling is wrong). Here in the program I just used one word just to make sure red underline is coming.
Problem - after hitting the space redline appears but the cursor goes back at the starting of the word.
My Approach - Wheneever there is a spelling mistake i put that word in a span. Now, in that span I will continously raise event on every Keyup to check the spelling, reason being is that if the user puts space between the word thats inside a span I will create two spans removing the already existing span.
[http://plnkr.co/edit/W1qMrTHxksBShYsJeXdl?p=preview]