jadjoubran / laravel5-angular-material-starter

Get started with Laravel 5.3 and AngularJS (material)
https://laravel-angular.readme.io/
MIT License
1.66k stars 401 forks source link

Call component function from another component #480

Closed num3r06 closed 7 years ago

num3r06 commented 7 years ago
followtheart commented 7 years ago

Maybe,what your need is a Service,and share the service in that two component(head/central)

num3r06 commented 7 years ago

Ok i've investigate this possibility. But how can i refresh header variable value on an event in central view? The central view refresh every 10 sec and if a value change in central variable a corrispondent value must be changed

followtheart commented 7 years ago

https://docs.angularjs.org/guide/component