These are chat archives for jadjoubran/laravel5-angular-material-starter

26th
Jul 2016
Ruhul Amin
@avastamin
Jul 26 2016 12:01
This message was deleted

I created calendar component.js >> class MedicalendarController{
constructor(){
'ngInject';

    //
}

$onInit(){
    this.title = 'Calendar Title';
    this.content = 'Calendar Content';
}

}

export const MedicalendarComponent = {
templateUrl: './views/app/components/medicalendar/medicalendar.component.html',
controller: MedicalendarController,
controllerAs: 'vm',
bindings: {}
}

Jad Joubran
@jadjoubran
Jul 26 2016 12:52
@avastamin why not install it using bower? or you mean you installed it and now you want to use it?
Ruhul Amin
@avastamin
Jul 26 2016 12:59
I already installed in using bower. But I don't know how can I create a custom controller and use scope like the demo calendarDemo.js (https://github.com/angular-ui/ui-calendar/blob/master/demo/calendarDemo.js). Any example will be really appreciated
Mark Kevin Besinga
@besingamkb
Jul 26 2016 15:16
Hi. I have a child component inside a parent component. can I pass some data from parent component to the child component? how can I do that?
Allan Alvarez Ortiz
@flick36
Jul 26 2016 15:52
@besingamkb with a service? or parameters with ui-router?
Allan Alvarez Ortiz
@flick36
Jul 26 2016 16:03
@avastamin easy, change all the $scope there for this and all the function varaibles for arrow functions; here, this should work: https://gist.github.com/flick36/91a137cfd2addf2a699c7dcb4b26e361