Working now thanks to Noels response. Am detecting which version of ionic is running and showing a different version of the markup for each one. For anyone else adapting a question type, here is the code.
https://github.com/marcusgreen/moodle-qtype_gapfill
https://github.com/marcusgreen/moodle-qtype_gapfill