Cannot get textarea value in angularjs

前端 未结 4 1013
一生所求
一生所求 2020-12-02 15:36

Here is my plnkr: http://plnkr.co/edit/n8cRXwIpHJw3jUpL8PX5?p=preview You have to click on a li element and the form will appear. Enter a random string and hit \'add notice\

4条回答
  •  情歌与酒
    2020-12-02 16:07

    Bind the textarea to a scope variable's property rather than directly to a scope variable:

    controller:

    $scope.notice = {text: ""}
    

    template:

    
    

提交回复
热议问题