javascript - Lots of problems with AngularJS and Typescript on Visual Studio (DefinitelyTyped) -


i'm getting lots of errors on visual studio typescript compiler when running solution after adding simple angularjs controller

/// <reference path="../../../scripts/typings/angularjs/angular.d.ts" />  "use strict";  class progressbarcontroller {     static $inject: array<string> = ["$rootscope", "$element"];     static measure = "px";     static startpagefactor = 1;     static endpagefactor = 1;      private rootscope; // todo define rootscope boilerplate     private element: jquery;      constructor($rootscope, $element: jquery) {         this.rootscope = $rootscope;         this.element = $element;     }      getwidth(): string {         var self = progressbarcontroller,             masterbarwidth = parsefloat(this.element.css("width").split(self.measure)[0]),             totalpages = this.rootscope.app.pages.length - self.endpagefactor,             eachpageprogress = (masterbarwidth / totalpages),             currentpage = this.rootscope.app.currentindex(),             progress = eachpageprogress * (currentpage - self.startpagefactor);          return progress + self.measure;     } }  angular.module("mydirectives")     .controller("progressbarcontroller", progressbarcontroller); 

i'm using angularjs 1.4.9, definitelytyped angular.d.ts angularjs 1.4+ , visual studio community 2015 resharper 9.0 update 1. typescript tools of project on 1.7 , compiler aiming es3 ie8 compatibility.

the errors more 400 , 95% come jquery.d.ts. different , 1 of them "cannot find name bool".

i'm having problems use ng, iangularstatic, iscope... avoided them

if installed d.ts package nuget, have old jquery dependency installed. update jquery.d.ts nuget package, , should golden :)


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -