I read somewhere that with ng-show comes performance issues when rendering a page so to combat that i realized i could use $element dependency to improve performance.
This actually flees you from using NG-IF and NG-SHOW
In the controller

In the  view

<div class="wrapper">

This is a remote computer

</div>




app.controller('myController',function($scope,$element){
var magDiv = $element.find(".wrapper");
magDiv.hide();
$scope.someEventHereLikeNg-click= function () {
magDiv.show();
};
});

Easy,Cheesy and Peasy.

SHARE
Previous articleHow To Install Kamailio SIP Proxy Server From Source In CentOS 7.x
Next articlePermission Denied While Starting instance in Openstack
I'm a fan of Linux and open source enthusiast with bachelor's degree in Electrical and Communications Engineering.The Swiss Army Knife syndrome makes me an expert in the fields of Virtualization, Cloud Computing,VoIP,Linux Containers and Server Hardening. Currently i have the following certifications: 1. LPI 2. SUSE Certified Linux Administrator ( CLA) 3. SUSE Certified Linux Professional ( CLP) 4. CCNA And working on RHCSA, RHCE, RHCVA, and Openstack Cloud Certification. I have a strong desire to learn, develop, and share knowledge with others.