Lazy register in AngularJs