Password protected checkbox

I am trying to create an app with a checkbox that would be password authenticated to become checked and unchecked.

I’m relatively new to Ionic and can’t for the life of me think how to do it. Is it possible? Are there any other ways of doing this if not within Ionic or AngularJS?

Just change the input Type in a dynamic way with angular

$scope.inputType = “text”

Ok great thanks, I’ll give that a go.