fixed demo code. added 'validator.provider' in module 'validator.directive'.