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.

/cc @leoping