0

celltemplate でアラートまたはログ機能を使用して、オブジェクトを直接表示したいと考えています。でもできないんです。私のコードは以下のようなものです:

columnDefs: [

              { field: 'Status', cellTemplate: '<button ng-click="alert("llk")">show</button>' },  { field: 'Log', cellTemplate: '<button ng-click="$log.log(Enums.Role)">log</button>' }]

私のエラーは次のとおりです: エラー: [$parse:ueoe] Unexpected end of expression: alert( http://errors.angularjs.org/1.3.0-beta.16/ $parse/ueoe?p0=alert( ....

4

1 に答える 1