I'm using Typescript and AngularJs (1.6). When I need to declare a variable with an angular's type, I often hesitating between the two following syntaxes:
constructor(private $sce: ng.ISCEService) {}
and
import { ISCEService } from 'angular';
constructor(private $sce: ISCEService) {}
I assume these two pieces of code are doing the exact same things, but I'm not 200% sure.
My favourite is the first one as it does not require an import, but maybe I'm missing something. I'm curious, do you have some advise / opinion / best practice?