Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49185

Using default parameter problem

$
0
0

@kndol wrote:

I assign a default value to the function parameter and I cannnot run Ionic app on iOS.

like this:
fn: function(param1 = 1) { ...}
or
function fn(param1 = 1) { ... }

It works well with 'ionic serve' but not with emulator nor real device.

My app shows splash screen only.

After removing default parameters, app runs well.

Is not able to use default parameters?

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 49185

Trending Articles



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