angular directive, input[file] image local preview
bower install ng-img-thumb --save
<body>
<input type="file" id="select-file" ng-model='appCtrl.file'>
<img-thumb file="appCtrl.file"></img-thumb>
<script src="bower_components/ng-img-thumb/img-thumb.js"></script>
<script>
angular.module('app',['ngImgThumb'])
.controller('AppCtrl',['$scope',function($scope){
var scope = this;
}]);
</script>
</body>