Posts

Showing posts from October, 2018

Pushing Form Data Into Fire base

Pushing Form Data Into Fire base 1. Form Creation 2. Pushing Form Data into data base. 1. Form Creation in Angular 1. Create Form Component Command : ng generate component templateForms --spec=false         The above command generate's following file's  1. template-forms.component.html 2. template-forms.component.ts 3. template-forms.component.css  Create one more file in the same folder as model file  4. template-forms.model.ts Now in the model file do the following  export class LoginForm { emailVal: string; passwordVal: string; } Description 1. In this model we are using 2 form input's which we need to send as a request 2. In model we define name of model and type of model if we don't have default Values. In template-forms. component.ts do the following <form #loginForm="ngForm" (ngSubmit)="login(loginForm)"> Email <br> <i...

Linking Angular Project with Fire base

Linking Angular Project with Fire base 1. Fire base Installation 2. Fire base configuration 3. Fire base setup with Angular Project. 1. Fire base Installation Use the following command to install fire base Command :  npm install angularfire2 firebase --save 2. Fire base Configuration a. Go to following link and login with your Gmail Credentials  Link:  https://console.firebase.google.com/ b. Click on Add Project link.  c. Enter Your Project Name in the field  d. Select and agree terms and conditions e. Click on Create Project Button f. After successful creation of project click on Continue button g. Home page appear's h. From side navigation bar Click on Database option i. You can create a cloud database or Real Time Database (In this we are selecting Real Time database). j. Scroll a little bit and you will see a Create Database button. Click on Create Database...

Installation and Setup Fire Base with Angular

Fire base with Angular Software's Required 1. Node (Latest Version) 2. Visual studio / Atom / Sublime Text 3. Angular 6 Setup and Installation 4.  Angular Project Creation and Running. 1. Downloading and installing Node 1. Visit following link and download node  Link:  https://nodejs.org/en/download/ 2. After download install by following the steps. 3. Once installed open command prompt and type following command to check node version command:  node -v  4. Note : Node version should be more that 6+ version. 2. Downloading and Installing Visual studio / Atom / Sublime Text 1. Visit following link for Visual Studio Code Link:  https://code.visualstudio.com/download 2. Visit following link for  Atom Link :  https://atom.io/ 3. Visit following link for Sublime Text Link:  https://www.sublimetext.com/3 4. After downloading follow the steps according to ...