use ng-init directive to call $scope.init