Fix #221 for Ionic Framework

Fix #221 for Ionic Framework using polyfill.