New Speaking Engagement – TechEd Europe 2014

August 20, 2014

Yesterday I was notified that one of my suggested sessions to TechEd Europe 2014 was accepted. First of all, it is a honor to be accepted as a speaker to a huge conference such as TechEd Europe.  Also, it is going to be my first time in Barcelona so I’m very excited. In the conference I’m going to speak about the TypeScript language and how to use it to build an end-to-end web applications. The session details: Building End-to-End Web Apps Using TypeScript Creating cross-platform, application-scale JavaScript code that runs in any browser or in any host is...
no comments

Saving and Loading ng-grid Columns State

August 13, 2014

One of the needs in an application I’m building is to save the user columns interaction state in a ng-grid. In order to do that you will have to use a storage such as localStorage and to understand ng-grid column events. In this post I’ll show you a suggested solution for this requirement. Saving Columns State Once you want to save ng-grid columns state, you need to understand the grid’s columns event. ng-grid exposes the ngGridEventColumns event. The ngGridEventColumns event is triggered every time a column is being changed for example when calling functions like pin, reorder columns...
2 comments

Building a Simple AngularJS Print Directive

August 9, 2014

Last week I wrote a simple print button directive for an application that uses AngularJS as its client-side framework. The requirement of the button was to enable the printing of a DOM element that included some content. In this post I’m going to describe how I build this directive but I won’t cover what are AngularJS directives. There are many good online resources about AngularJS directives, so please read one of them before reading this post. The solution I use for the directive is based on this jsFiddle: http://jsfiddle.net/95ezN/121/. The Directive Code We will first start with the directive itself: (function (angular)...
36 comments