Pages

Monday, 9 October 2017

Firebase has just announced Firestore which is NOSQL document-based database. As compare to Firebase real time database in Firestore you can use simple and compound queries to fetch and retrieve the data.In this tutorial we will learn how to integrate Firestore with Ionic 3. Follow these following easy steps.Step-1First you need to create a new project using Ionic CLI. If you don't know how to create new project using Ionic CLI please read this article Set Up Development Environment for Ionic Framwork . Just open your terminal or command prompt. Create a project by using this command.

ionicstartmyApptabs

If you have already created project then you can skip this step.

Step-2

Go to root directory of your project now you need to install Firebase package. Install angularfire 2 in your ionic project by using npm.

There are multiple way to Retriving collection data from firestore.If you just need the object data use valueChanges() method. With valueChanges() method no document metadata is attached which makes it simple to render to a view.snapshotChanges() method returns an Observable of data as a DocumentChangeAction.Sample code

For setting, updating, and deleting document data use set(), update(), delete() methods.Reference is taken from https://github.com/angular/angularfire2If you face any problem you can comment below. Thank You

Thursday, 28 September 2017

Hi, If you are new in Angular or want to install Angular Development environment in your system then your are at right place. Here you will learn step by step process to install Angular Development environment in your system. So don't worry its a very easy task you have to do it only once and after that you can create and developed a lots of project in Angular.

Step-1

At First you need to install Node.js in you system go to official site of Node.Js download and install it in your system.

After successful installation of Node.js to check its working or not Open terminal , or Command Promptand type 'node --version '. This will show to installed version of node. Node.js setup comes with node package manager(npm) so to check npm version type 'npm --version'.

node--version

Step - 2

Now you need to install Angular CLI in your system just open your terminal or command prompt and type 'npm install -g @angular/cli'.

npminstall-g@angular/cli

Its take some times to install in your system.After Successful installation of Angular CLI just type and 'ng --version' to check installed Angular CLI version or its working or not.

Step-3Now you need to create Angular project.

type 'ng new MyProject'.

ngnewMyProject

After running this command a projected directory is created with named MyProject go to root directory of your project and type 'ng serve --open' to run your project.

cdMyProject

ngserve--open

After running ng serve a localhost is started now open your browser and navigate to http://localhost:4200/ .

If you are facing any problem comment below.Thank You.

Thursday, 21 September 2017

Technology is growing very fast. Also development mode of Mobile application also changed. With very less effort now we can build cross platform mobile apps. Today there a lots of technology in the market like React Native, Ionic Framework, Native Script which gives us a environment to develop cross platform mobile apps which work on Android , ios like native apps.

Here we provide a complete guide to set up development environment for Ionic Framework.

What is Ionic Framwork?

Ionic is a open source framwork to build amazing cross platform mobile appps. Before staring Ionic framwork you should have knowledge of JavaScrict, Angular, TypeScript, HTML and CSS.

First of all we need to install Node.js in our system visit Node.js official site to download and install it.

To check successful installation of node.js open 'Command Prompt' if you are using windows or open 'Terminal' for 'MacOS' or 'Linux'.

and type 'node --version' and press enter button. This will show you installed version of node. Node.js comes with npm package you can also check npm package version by typing 'npm --v'.

Step-2

You need to install Ionic Framework in your system. Just open 'Command Prompt' or 'Terminal' and type 'npm install -g cordova ionic' and press enter.You can also individually install by typing 'npm install -g ionic' and 'npm install -g cordova'.

npminstall-gcordovaionic

To check successful installation type 'ionic' and 'cordova'. This will show you install version of Ionic Framwork and cordova with description.

Step 3-

Now create your first ionic app type 'ionic start myApp tabs'.

ionicstartmyApptabs

After running this command a project directory is create with name "myApp".

Now go to project directory and open project with your favorite code editor like Sublime text, Atom or Visual Studio code any one you can prefer.

This is folder structure of your ionic App. All your editable coding stuff is available in 'src' folder.You can modify, add ,edit stuffs from 'src folder.Step- 4To run your app go to to your project directory using cmd or Terminal and just type 'ionic serve --lab'. This will show you web view of app in your browser.

ionicserve--lab

After running this command a dev server is start in your system. And Show you live preview of your application.

If you face any problem to set up environment just freely comment below. Thank You.

Saturday, 2 September 2017

Razorpay is provide payment solutions to online merchants. You can easily integrate with your application for payment solution.Here we provide steps to integrate it with Ionic Framwork 3.Step - 1
So, first of all install razorpay-cordova plugin plugin in your application.

Saturday, 7 January 2017

#include<stdio.h>#include<conio.h>voidmain(){intd[7][7];inti,j,n,a;intres;clrscr();printf("Enter the number of nodes\n\n");scanf("%d",&n);printf("Enter the elements of Dependency matrix");for(i=0;i<n;i++){for(j=0;j<n;j++){scanf("%d",&d[i][j]);}}d[0][1]=1;d[1][2]=1;d[2][3]=1;printf("DEPENDECNY MATRIS IS:\n");for(i=0;i<n;i++){for(j=0;j<n;j++){printf("%d",d[i][j]);}}getch();}

voidmain(){doublep[3];doublec=1;intk,j,res,res1,i,now,now1,con;clrscr();for(i=0;i<3;i++){p[i]=0;}printf("\nWhich process do you want to start?\n");k=0;printf("p[%d] OR p[%d] OR p[%d]",k,k+1,k+2);printf("\nenter the process no.(0/1/2):\n");scanf("%d",&j);p[j]=0.5;c=c-p[j];printf("\nDoes process C(controller)invokes any other process:\nFor Yes-Press 1\nFor No-press 0\n");scanf("%d",&res);if(res==1){printf("\nWhich process will it invoke(1 OR 2):\n");scanf("%d",&now);p[now]=0.25;c=c-0.25;}printf("\nDoes process C(controller)invokes any other process:\nFor Yes-Press 1\nFor No-press 0\n");scanf("%d",&res1);if(res1==1){printf("\nWill it invoke(1 OR 2):\n");p[now1]=0.25;c=c-0.25;}for(i=0;i<3;i++){printf("\nIs Process p[%d] is completed:?\nfor yes-press 1\nfor No-press 0\n",i);scanf("%d",&con);if(con==1){c=c+p[i];}}if(c==1){printf("\nAll Processes are COMPLETED");}else{printf("\nSome PROCESS is NOT Complete");}getch();}