How can I get rid of this lint (jshint) warning? I have a controller that has this statement:
$scope.isIOS = ionic.Platform.isIOS();
It compiles and runs just fine with ionic showing up as an object, but the code is getting a lint warning of “‘ionic’ is not defined.” How can I fix it? (It does not matter whether or not I inject $ionicPlatform into the controller.)
I actually had quite a few lint warnings in my project. But i never figured out what’s wrong. That buggers me a while but i decided to ignore them eventually.