<button ng-disabled="!$ctrl.SomeCondition">Button</button>--
You received this message because you are subscribed to a topic in the Google Groups "Angular and AngularJS discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/PB8mtFCVxKs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
--
<div>
<div style="height: 10%; padding: 10px;">
<span style="padding-left: 50px;">
<button (click)="retrieveHistoricalData()" ng-disabled="ableToRetrieveHistoricalData()"> << Previous</button>
</span>
</div>
</div>
@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?