Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Private methods called from html compile without errors

$
0
0

@reedrichards wrote:

I remember, somewhere, that private methods, for design best practice reason I guess, weren't allowed to be called from the html pages. Therefore, if a private method would have been used in an html pages, the build compilation used to throw an error ... well if that's correct, seems it is not the case anymore.

Could someone could tell me, first, if I'm totally wrong? and if not, if you notice the same unexpected behavior?

P.S.: I noticed that error because I just wrote a private method I only call from the html page

'navigateToDetail' is declared but never used.

P.P.S.: Same behavior noticed with ionic server or ionic cordova build android --prod

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



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