angular js: accessing $scope from jQuery

前端 未结 4 1510
伪装坚强ぢ
伪装坚强ぢ 2021-01-02 07:16

There are several questions like this in stackoverflow. I know. Tried all the answers, but still no luck. My html :

    
4条回答
  •  甜味超标
    2021-01-02 07:49

    Try this

    var country = $("#headline-game").scope().gameContent.headline;
    alert(country);
    

提交回复
热议问题