Angular $scope variable not updating

后端 未结 6 1458
一整个雨季
一整个雨季 2021-01-02 04:19

In my angular, I define a scope variable $scope.letter_content. When the view is loaded, I load string from my database and set it to $scope.letter_conten

6条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-02 04:47

    can you ever heard of angular's dot notation?

    solution

    put letter_content in an object. froalaDetails.letter_content for example. then update that value and everything should work exactly like you want.

    explanation

    watch this very short video to get the full details: https://egghead.io/lessons/angularjs-the-dot

提交回复
热议问题