These are chat archives for AngularClass/NG6-starter

19th
Jan 2016
Andy Brown
@brownish
Jan 19 2016 18:47
@kinabalu what happens when you call a function from this.myService?
Andrew Lombardi
@kinabalu
Jan 19 2016 20:06
@brownish this.myService is “undefined"
Andy Brown
@brownish
Jan 19 2016 20:06
how are you injecting myService into your angular module?
Sergey Protko
@fesor
Jan 19 2016 20:22
this is possible the problem
you registered undefined as service)
Andy Brown
@brownish
Jan 19 2016 20:24
myService might return undefined
so you do import 'myService' from './my.service';
and in my.service.js you have something like:
export default class MyService {}