I have JS code with Angular controller which starts like this:
angular.module('myApp.controllers', [])
.controller('BookmarksController', function($scope, bookmarkService, crawlerService) {
I want to rewrite it using TypeScript. Here is my code:
class Some {
constructor($scope, bookmarkService, crawlerService) {}
}
angular
.module('myApp.controllers', [])
.controller('BookmarksController', Some($scope, bookmarkService, crawlerService));
It doesn't work:
Can not find name $scope, bookmarkService, crawlerService
How can I fix it ?