Template extracted and ng-show fixed.