Answer the question
In order to leave comments, you need to log in
How to start developing an application in TypeScript and AndularJS?
Actually, which editor is better to use for auto-completion by type?
With the help of gulp I set up compilation, and with the help of tsd I loaded d.ts files for angular, but PHPStorm does not show all types and still shows an error on d.ts files.
Maybe someone faced such a problem?
Answer the question
In order to leave comments, you need to log in
Well let's do it. First you need to try writing applications according to the angular best practice. Then try to start using "classes" and modules, like this:
// ApplicationController.js
export default class ApplicationController {
constructor(someService) {
this.someService = someService;
}
someMethod() {
return this.someService.someMethod();
}
}
// app.js
import ApplicationController from './ApplicationController';
angular
.module('app', [])
.controller({
ApplicationController: ApplicationController
})
;
It is worth mentioning that I have written applications in Angular before, I am interested in setting up the environment and the application skeleton in TypeScript.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question