Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

how to access method of another component #1768

Open
itshakeel23 opened this issue Jan 30, 2017 · 1 comment
Open

how to access method of another component #1768

itshakeel23 opened this issue Jan 30, 2017 · 1 comment

Comments

@itshakeel23
Copy link

itshakeel23 commented Jan 30, 2017

Hi

I have two different components e.g "search_form" and "search_results". In my "search_form" i have input button and by clicking it, that will call a function "clickMe()" of "search_results" components. how can i do that in Angular Dart?

search_form_component:
<div class="form-group"> <button type="button" class="btn btn-primary" (click)="clickMe()">Search</button> </div>

search_results_component:
class SearchResultsComponent {
void clickMe(){
print("Button clicked.");
}
}

app_component.html:
<search-form></search-form> <search-results></search-results>

Thanks

@zoechi
Copy link
Contributor

zoechi commented Jan 31, 2017

That's the Angular Dart 1.x repo. Please ask support question on http://stackoverflow.com/questions/tagged/dart

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants