mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Fix first round of weak type errors Done through griddle-react * 95% done with weak type fixes * Fix last couple of weak type errors * Remove some lint from mithril tests * mithril's Lifecycle is not a weak type any more Restore the Lifecycle constraints in the rest of the definitions. * Fix react-redux tests after #16652 broke them * Remove package-lock.json
27 lines
759 B
TypeScript
27 lines
759 B
TypeScript
class NgMapTestController implements ng.IController {
|
|
constructor(public $scope: ng.IScope, public $window: ng.IWindowService, public NgMap: angular.map.INgMap) {
|
|
this.showMap();
|
|
}
|
|
|
|
public showMap() {
|
|
this.NgMap.getMap().then(function(map) {
|
|
console.log(map.getCenter());
|
|
});
|
|
}
|
|
$onInit() {
|
|
}
|
|
}
|
|
|
|
var app = angular.module('angularLocalStorageTests', ['ngMap']);
|
|
|
|
app.config(function(NgMapProvider: angular.map.INgMapProvider) {
|
|
NgMapProvider.setDefaultOptions({
|
|
marker: {
|
|
optimized: false
|
|
}
|
|
});
|
|
});
|
|
|
|
app.controller('testCtrl', ['$scope', '$window', 'ngMap',
|
|
($scope: ng.IScope, $window: ng.IWindowService, NgMap: angular.map.INgMap) => new NgMapTestController($scope, $window, NgMap)]);
|