September 4, 2014
Lately, I was asked a couple of times what I’m doing today since I left SELA Group.If you are following my Blog, you probably know that I founded my own consulting/training company – sparXys.In sparXys, we are providing the following services: Software and technology consultancy Training and mentoring services Software development methodologies consulting If you are looking for those services, feel free to contact me.
September 2, 2014
Yesterday, DotNetCurry magazine published an article that I wrote. The article introduces Backbone.js, a front-end MVC library, that I used in various of successful projects. While I’m using other MVW libraries/frameworks as well (AngularJS and Knockout.js for example), I’m always happy to return to Backbone.js and use it in projects. Here is were you can find the article. Enjoy! and let me know what do you think about it.
August 20, 2014
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...
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:
July 17, 2014
One of the things you might need to do is to clean up resources when a controller in AngularJS is being deactivated. The way to clean used resources is by listening to the $scope’s $destroy event and when it is triggered to do your clean. In the AngularJS controller lifecycle, a $destroy function is called in order to remove the current scope with all its children from a parent scope. The $destory function is called by AngularJS and once it occurs a $destory event is triggered on the scope. You can use that knowledge and clean resources once the...
July 3, 2014
June 26, 2014
June 5, 2014
I had the pleasure of delivering a Jasmine session today in NDC Oslo. In the session, I introduced both Behavior Driven Development (BDD) and the Jasmine framework.At the end of the session, I showed how you can integrate Jasmine with the Karma test runner to test code in different browsers.I want to thank all the session attendees! You can find the slide deck and demos online.
June 4, 2014
I had the pleasure of delivering a TypeScript session today in NDC Oslo. In the session, I introduced the TypeScript language and talked about language features and how to use them.At the end of the session, I wrote a simple end-to-end web application using TypeScript in the server (with Node.js) and in the front-end.I want to thank all the session attendees! You can find the slide deck and demos online. Enjoy and meet me tomorrow in my Jasmine talk.