AngularJS and contentEditable two way binding doesn't work as expected

前端 未结 5 1648
广开言路
广开言路 2020-12-07 18:53

Why in the following example the initial rendered value is {{ person.name }} rather than David? How would you fix this?

Live example here

5条回答
  •  心在旅途
    2020-12-07 19:28

    Here is my understanding of Custom directives.

    The code below is basic overview of two way binding.

    you can see it working here as well.

    http://plnkr.co/edit/8dhZw5W1JyPFUiY7sXjo

    
    
      
        
        
      
      
        

    Hope, it helps someone out there.!!

提交回复
热议问题