Hi i need to show only some text (3 lines) and the other text should be loaded on show more button
here the text is coming from json
JS:
$scope.fnInit = function() {
getInfo.getSubCategory($stateParams.id).then(function(response){
$scope.subCategory=response;
})
};
html:
<div ng-repeat="data in subCategory" class="sub_category">
<div class="header"><b>{{data.heading}}</b></div>
<div class="row content">
<div class="col-xs-4"><img ng-src="{{data.image}}" class="img-responsive center-block" ></div>
<div class="description col-xs-7" ng-bind-html="data.description"></div>
</div>
</div>
in the description section i need to limited text and then ... when i click on the ... i need to get the full data .
Any help would be appreciated