added possibility to set data with ng-init
angular 1.2.0 compatibility