Browsed by
Tag: typescript

ProtractorJS + TypeScript – tutorial

ProtractorJS + TypeScript – tutorial

ProtractorJs is an end-to-end framework written for AngularJS applications. It uses Selenium WebDriver features internally. The main advantage of the regular WebDriver test is an ability to cooperate well with SPA application. The main problem with this type of systems is asynchronization. Single Page Applications change their look without reloading the whole page. So it is very hard to determine when the application is ready for action. Fortunately, Protractor knows the Angular internal mechanisms, so he is aware when application finish all operations.

Konfiguracja TypeScript – kompilacja

Konfiguracja TypeScript – kompilacja

Co to jest TypeScript? TypeScript to j臋zyk, kt贸ry jest nak艂adk膮 na JavaScript. Udost臋pnia on silne typowanie dla tego dynamicznego j臋zyka. Dodatkowo wprowadza on klasy, modu艂y i interfejsy, kt贸re pomagaj膮 w organizacji kodu aplikacji. Jest to szczeg贸lnie u偶yteczne w du偶ych projektach z wydzielonymi wieloma cz臋艣ciami aplikacji. Dzi臋ki u偶yciu mechanizm贸w obiektowych mo偶emy porz膮dkowa膰 kod, a dzi臋ki silnemu typowaniu ka偶dy b艂膮d sk艂adniowy zostanie wykryty ju偶 podczas kompilacji lub, w niekt贸rych edytorach, nawet podczas pisania. Dobra konfiguracja TypeScript pozwoli nam w du偶ej mierze zautomatyzowa膰…

Read More Read More

Visual Studio – TypeScript version problem

Visual Studio – TypeScript version problem

TypeScript project with Angular in Visual Studio – beginner problem When you start writing your first project in TypeScript in Visual Studio you can notice some annoying behaviour. At first, you probably have installed TypeScript and configured project. Then you have started reading聽some tutorials. In my case, I started with tutorial:聽http://chsakell.com/2015/09/19/typescript-angularjs-gulp-and-bower-in-visual-studio-2015/ When I have started following聽this lessons,聽I noticed聽that hundreds of errors appears. Surprisingly, they were not in my code, but in Angular TypeScript definition file – angular.d.ts. I saw that…

Read More Read More