We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dac231 commit fc29dc3Copy full SHA for fc29dc3
app/index.html
@@ -19,7 +19,7 @@ <h3>
19
<a target="_blank" ng-href="{{ word.url?word.url: 'http://www.dict.cn/' + word.word }}" ng-bind="word.word"></a>
20
</h3>
21
<span class="tag-box">
22
- <em ng-repeat="tag in word.tags track by $index" ng-bind="tag"></em>
+ <em ng-repeat="tag in word.tags track by $index" ng-bind="tag" ng-click="setKeywords(tag)"></em>
23
</span>
24
</li>
25
</ul>
app/scripts/app.js
@@ -25,5 +25,9 @@ angular.module('abstackVarLib', [])
$scope.wordsList = data;
26
});
27
28
+ $scope.setKeywords = function(tag){
29
+ $scope.keywords = tag;
30
+ }
31
+
32
33
}]);
0 commit comments