Ok, so I am not clear what I am doing incorrectly but my test for
enable/disable of the button is not being called, whether my expression is
a variable or a method.
my component.component.html is:
<div>
<div style="height: 10%; padding: 10px;">
<span style="padding-left: 50px;">
<button (click)="retrieveHistoricalData()" ng-disabled=
"ableToRetrieveHistoricalData()"> << Previous</button>
</span>
</div>
</div>
this html is used by flowsheet.component.ts.
@Component({
providers: [
FlowsheetService,
SubscriptionService
],
moduleId: module.id,
selector: 'flowsheet',
templateUrl: './flowsheet.component.html',
styleUrls: ['i-o-renderer.css'],
encapsulation: ViewEncapsulation.None
})
the button click works just fine but the ableToRetrieveHistoricalData()
function is never called.
Am I missing something obvious?
>
--
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.