Fix double loading issues when loading examples

The problem was due to `$scope.input.$valid` is not set properly.
The solution is to hard set it in load sample.
Merge branch 'fix_double_loading'