I have a number of elements that I want to be visible under certain conditions.
In AngularJS I would write
stuff
To hide and show div on button click in angular 6.
Html Code
Name
Ram
Component .ts Code
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent{
isShow=false;
}
this works for me and it is way to replace ng-hide and ng-show in angular6.
enjoy...
Thanks