Skip to main content
11 events
when toggle format what by license comment
Sep 4, 2017 at 8:46 comment added iv444 Ok solved it! the problem occurred because the textarea is inside a tab element. Therefore we need to reinitialize the model value everytime a tab button is clicked. In this case, if we use optB we don't need to reinitialize it everytime.
Sep 4, 2017 at 8:04 comment added FAISAL create a plunker or stackblitz demo
Sep 4, 2017 at 8:03 comment added iv444 Ok that's weird.. That's how I implemented as well. This is the error I got oi63.tinypic.com/nboxvk.jpg
Sep 4, 2017 at 7:46 comment added FAISAL i dont see any erros, see this demo: stackblitz.com/edit/…
Sep 4, 2017 at 7:42 comment added iv444 I added public fruit: any = { description: ''}; on .ts file but still see the error.. What am I missing?
Aug 31, 2017 at 18:31 vote accept iv444
Aug 30, 2017 at 12:19 comment added FAISAL @ivanasetiawan it means that fruit.description should be initialize e.g. if it is of type string, then fruit.description = '';
Aug 30, 2017 at 11:44 comment added iv444 Yes! You're right! we saw the error. How do you mean with initialize the model value? we tried to do it but still see the same error. Would be great if you could give an example. (sorry cannot reply directly, my reputation is < 50)
Aug 29, 2017 at 17:45 history edited FAISAL CC BY-SA 3.0
added 50 characters in body
Aug 29, 2017 at 10:48 history migrated from stackoverflow.com (revisions)
Aug 29, 2017 at 9:44 history answered FAISAL CC BY-SA 3.0