Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229723

Tabpage "tabs" not highlighting when selected

$
0
0

I can give some tips for avoiding them.

  • always declare types of return values of all functions
  • any time you call any function that returns a future (Promise/Observable), make sure one of two things is true: either the calling function returns void and everything that needs the resolved value is self-contained inside a then or subscribe in that function; or the very first word of your calling function is return
  • any time you are interacting with cordova, wrap with platform.ready().then()
  • ditto with Storage and its ready()
  • never use setTimeout()
  • if you use any libraries with callback systems, Promise-ify them and only use that interface
  • let Angular control the DOM. don't bring in anything (like jQuery) that is going to fight with it

Viewing all articles
Browse latest Browse all 229723

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>