Еще одна прекрасная вещь внезапно обнаруженная мной в Chrome – это возможность создания JavaScript сниппетов – кусочков кода, которые можно будет выполнить в любой момент на странице.
Category Archives: Хочу сделать мир лучше
ng-biscuit – cookies extension for AngularJS
If you work with AngularJS a lot you probably know that when you want to use cookies with all the options like domain, path, etc… you face with lack of functionality in native Angular ngCookies module. It’s almost 3 years when this issue has been reported.
So I’ve created my module – ng-biscuit to deal with cookie options.
There is also alternative by Dmitri Voronianski by name ngKookies which is port of jquery-cookie.
Компилируем AngularJS шаблоны в консоли
В дополнение к этой заметке еще одна о том, как можно проверить работу шаблона/директивы/фильтра в консоли.
DIT 2015 – Dutch income tax calculator
Updated Dutch income tax calculator for new 2015 tax rates.
Запукаем Protractor на Browserstack
Небольшая заметка о том, как запустить protractor тесты на разных браузерах используя сервис Browserstack.
AngularJS FlipClock component
created angular-flipclock module – AngularJS wrapper for FlipClock.js jQuery plugin. It’s very green for now, so you are welcome to contribute and put suggestions.
Editing breakpoints in Chrome devtools
Suddenly found out that Chrome has possibility to “edit breakpoint” or other words – to add extra behaviour for it: like stop only for special condition, output console.log, etc.
JavaScript for detecting browser language preference
Just not to forget:
[javascript]
var language = window.navigator.userLanguage || window.navigator.languages[0];
[/javascript]
and more crazy(but more trustful) way:
[javascript]
$.ajax({
url: "http://ajaxhttpheaders.appspot.com",
dataType: ‘jsonp’,
success: function(headers) {
var language = headers[‘Accept-Language’];
}
});
[/javascript]
Blackbox JavaScript Source Files
Probably you already know that Chrome now allows to put script source file to blackbox (or simply to ignore it during debug). It helps to avoid jumping inside 3rd party library and debugging it instead of focusing on own code.
Самые распространенные ошибки AngularJS разработчиков
Пост представляет собой микс перевода/переработки статьи The Top 10 Mistakes AngularJS Developers Make и личного грабельного опыта.