AngularJS controller inheritance

前端 未结 6 1122
闹比i
闹比i 2020-12-01 04:44

AngularJS has a DOM based controller inheritance, as mentioned in the angular Docs.

Base Controller

6条回答
  •  猫巷女王i
    2020-12-01 05:19

    Use objects instead of using primitive value. In your case define an object like this

    $scope.obj = {"value":"base"}; 
    

    and try(obj.value). it will work.

提交回复
热议问题