angularjs - Do I still need ngSanitize if I'm not going to use ng-bind-html? -


my questions are:

  1. do still need ngsanitize if i'm not going use ng-bind-html? if yes, why?
  2. is used anywhere else other ng-bind-html?
  3. does ngsanitize affect way dom input elements affect underlying model through ng-model?

1) yes will. ng-bind-html use $sanitize , requires have ngsanitize available.

2) probably

3) not work ng-model (why ng-bind-html , $sanitize produce different results?)


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

python - Error: Unresolved reference 'selenium' What is the reason? -

asp.net ajax - Jquery scroll to element just goes to top of page -