These are chat archives for TypeStrong/atom-typescript

1st
Jun 2015
Basarat Ali Syed
@basarat
Jun 01 2015 00:35
@park9140 Is this what you were talking about : https://github.com/AtomLinter/linter-plus
Basarat Ali Syed
@basarat
Jun 01 2015 05:21
@Zoltu no there isn't a way to provide that option. I've been mildly annoyed by this myself but its easy enough to remove these tsconfig files or just not commit them as they show up as new files. Other than TS compiler itself I imagine few projects not wanting these files.
Jonathan Park
@park9140
Jun 01 2015 06:04
@basarat yeah, basically it’s a similar api methodology to the autocomplete api. Should be straight forward to roll over to the new api.
Basarat Ali Syed
@basarat
Jun 01 2015 06:14
@park9140 sweet. Thanks. Is it ready to go? should I swap over to linter-plus?
Jonathan Park
@park9140
Jun 01 2015 06:36
Still in progress. Looks like with the current progress it will be soonish. linter-plus is going to outright replace linter. You may need to support both apis for a period of time, not really sure yet.
Bed time now though gnight.
Basarat Ali Syed
@basarat
Jun 01 2015 06:36
:rose:
kpgarrod
@kpgarrod
Jun 01 2015 06:47
I just want to check my understanding about something. In my angularjs 1.4 project, I have a service: Service1 implements IService1. When I consume the service in say a controller, I import {IService1} from ... and then define it in the constructor: private Service1: IService1. I know this works, but I'm not sure if it's the right way. It would be easier if I could just import {Service1}, but my understanding is that this would mess with angular's dependency injection. Is that right?
Basarat Ali Syed
@basarat
Jun 01 2015 09:22
I feel that interface is redundant. That said in ng1.4 you would still need a manual $inject
kpgarrod
@kpgarrod
Jun 01 2015 10:43
@basarat: thanks for your input. I was planning to use ngAnnotate to insert the injections. Is there a reason why that won't work with TS/Webpack? What is puzzling me is that an angular service is a singleton,so my understanding is that what is injected by angular is an instance of the class. If I import the class itself, will angular still inject an instance? Won't each importer get a new instance?
explains how to hack around ng1 DI when using ES6 modules
kpgarrod
@kpgarrod
Jun 01 2015 15:48
@mitranim: thanks very much. I'll take a proper look at that tomorrow
as a matter of interest, are the annotations in ng-decorate are consistent with ng2 decorations?
Evan Winslow
@ewinslow
Jun 01 2015 18:49
Anyone experiencing autocomplete slowness in the latest version of the plugin? Just installed this morning and seeing autocomplete show up only after 5-10 seconds in some cases. Long enough to make me think it's not working at all.
Nelo Mitranim
@Mitranim
Jun 01 2015 20:21
@kpgarrod ng-decorate deliberately aligns with the ng1 directive API. I think imitating ng2 decorators is dumb