Hi,
I have a list of packages
I have 2 buttons
button 1 - selects the package and shows which package is selected - GREAT!
button 2 - toggles an ngIf show/hide but shows all content and not the
selected package
I would like button 2 to show/hide only the data clicked
*<div class="lower-block" (click)="packageSelect(package)">Add
Package</div><button (click)="toggleCollapse(package)">Show</button>Enter
code here...packageSelect(thispackage: Package): void {
this.selectedPackage = thispackage; console.log('the selected package is',
this.selectedPackage.name);}toggleCollapse(thispackage: Package) {
this.isCollapsed = !this.isCollapsed;}*
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/angular/24065ecb-519b-4683-88b3-7f140eb232f0%40googlegroups.com.