Angular.js type checking actually done