Below are the steps to create a sample Ionic Application or Hybrid Mobile Application: 1. Prerequisite: You should have node and angular cli installed in your system 2. Install Ionic CLI npm install -g ionic 3. Install Cordova npm install -g ionic cordova 4. Creating a sample ionic application: ionic start <app-name> <template> ionic start HelloWorld tabs 5. Running the application: go to the application directory cd HelloWorld ionic serve 6. Ionic application Testing on Android and IOS: ionic cordova build android <to generate the apk file for android device> ionic cordova run android <to directly on the device if it is connect to the computer> ionic cordova build ios Below are some useful commands: ionic cordova platform -a ionic cordova platform list ionic cordova platform add android@6.3.0 Note: For reference read this: https://ionicframework.com/present-ionic ...
Reference link: youtube.com/watch?v=oNdMigiwzlU&t=227s- java 8 programming questions https://www.youtube.com/watchv=QRwG9X9l6xI&list=PLsyeobzWxl7qbvNnJKjYbkTLn2w3eRy1Q- -----------what is lamda expression/how to write lamda expression exampl1: ()->{SOPL("Hello")}--curly braces is optional when one line is written example 2: (a,b)->{sopl(a+b)}---compiler can guess the data type example: 3 n->n*n--when only one input parameter then parenthesis is optional, and return is not required if you are not using curly braces. example : 4 s-> s.length; -----------------------calling the lamda function/Functional Interface-------------------------- what is lamda expression : lamda expression is nothing but anonymous function -no name - no modifier - no return type - special arrow symbol how to write lamda expression what is the functional interface n->return n*n; ---invalid n->{return n*n;};----valid n-> {return n*n};----invalid n->{n*n;};------inval...
Comments
Post a Comment