What is the proposed way to achieve the invisibility of an element in angular 2 ( visibility:hiddennot displaying the element, but keeping it occupied) ?. It has a directive [hide], but it looks like adisplay:none
visibility:hidden
[hide]
display:none
You can set the style attribute visibilityusing style binding :
visibility
<div [style.visibility]="'hidden'"></div> <div [style.visibility]="isDivVisible ? 'visible' : 'hidden'"></div>
An example is shown in this plunker .
You can execute ngIf if you do not want your component to appear in the DOM.
, , , none NgClass. , , ngIf
Try ngShow .
<div ng-show="myValue"></div>
Hide item from controller:
$scope.myValue = false
Source: https://habr.com/ru/post/1682124/More articles:Implement a prism in an existing Xamarin.Forms application - c #why for ... in only shows the methods defined with class.prototype? - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1682121/how-to-add-custom-xml-tags-to-sitemapxml-using-mvcsitemapprovider&usg=ALkJrhhPjnD_D_NqlrL6l9cuE41VRY7TsQСкрытые символы '\ u0' добавлены в файл после сохранения на сервере - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1682123/inject-css-to-a-vue-component&usg=ALkJrhh1kDTpGL10UmMRw1eJOZqN28z5JQLink to the class method of another module in python docstring - pythonRunning a file on global variables - pythonIs there an alternative for advanced collectors in Jenkins? - jenkinsGoogle Cloud Compute Instance, IPv6 - google-compute-engineКоличество экземпляров каждого тега с использованием функционального программирования - functional-programmingAll Articles