This html code :
<md-button class="md-primary " ng-click="setDevice('phone')">Phone
</md-button>
<md-button class="md-primary " ng-click="setDevice('tablet')">
Tablet
</md-button>
<div class="area-{{setDevice}}">
<me-iphone tmp-url="{{appTemplateUrl}}"></me-iphone>
</div>
First Time When Click Phone or Tablet Button Update setDevice Value
$scope.setDevice = "";
$scope.setDevice = function(setDevice){
$scope.setDevice = setDevice;
}
The problem is (First Click phone), When Click Tablet Button Not update setDevice Value
When click both button, hope to update $scope.setDevice Value