Dzulqarnain Nasir

  • December 25, 2013

    Angular Date Parser

    Lately I’ve been working a lot with date and time pickers, and it got me thinking, “Why doesn’t Angular come with some form of date and time parser that converts strings into a JavaScript Date object.” I mean, you could already convert Date objects into formatted strings using the Angular dateFilter, so why not the other way around? Wouldn’t it be cool to be able to convert strings into Date objects using a particular format, and in many cases for us in Europe, locale.

    Read more »
  • December 06, 2013

    Angular Timepicker Directive

    I was searching for a simple timepicker directive, much like the one used in Google Calendar, for one of my projects. I couldn’t find any, so I built my own.

    Read more »
  • November 04, 2013

    Scope Inheritance in AngularJS

    As I continue my journey into the Angular world, I come across many new and awesome things. One very interesting thing Angular has got going for it is the use of scopes.

    Scope inheritance in Angular works very much like JavaScript’s prototypal inheritance. Child scopes have access to their respective parent scopes, changes in the parent scope can trigger event listeners in the child scope, so on and so forth. It’s pretty straight forward, up until the moment you need to do some “two-way binding” from within the child scope.

    Read more »
  • October 09, 2013

    Display Mode Detection for Responsive Websites using AngularJS

    I’ve recently started using AngularJS in a project I’m currently working on. So far, AngularJS has been great, and I’ve especially enjoyed building my own custom directives.

    Here’s one I’m using to determine the current display mode for responsive websites.

    Read more »
  • September 23, 2013

    Implementing Custom Checkbox List Property in EPiServer CMS 7

    In one of my recent projects, I’ve had to implement a property that displays a list of checkboxes so the administrator could select an item to enable from the list of available options. I googled around for a bit and came across this article by Linus Ekström.

    This is my implementation.

    Read more »