by Yogesh | Feb 22, 2018 | Type Script Tutorial
type script for loop //For Of Example var myfun = () => { var num: number[] = [2, 3, 10, 19] for (var item of num) { console.log(item); } } function getdata(): any { alert('hello'); } function getdata1(a: string, b: string, c: string='pratap nagar'): any {...
by Yogesh | Feb 22, 2018 | Type Script Tutorial
Type Script Array Example var myfun = () => { var num: number[] = [2, 3, 10, 19] for (var i = 0; i < num.length; i++) { console.log(num[i]) } }
by Yogesh | Feb 22, 2018 | Type Script Tutorial
Run Project Using Command Prompt. Create Folder in D Drive Create file app.ts Open Command Prompt ,Reach upto File Write Following Command : tsc app.ts It will create an js file(app.js) Run File : node app.js Variable declaration in typescript: Variable Declared in...
by Yogesh | Feb 20, 2018 | Angular 4 Tutorial
Angular 4 reactive forms In this tutorial, I am going to discuss reactive forms or model-driven forms. Step 1. Add Following reference in app.module.ts import { FormsModule , ReactiveFormsModule } from ‘@angular/forms’; Step 2. Create New Component...
by Yogesh | Feb 20, 2018 | Angular 4 Tutorial
Nested Formgroup Example In this example, I will show that how we can add form group into another form group or how we can create nested form groups in angular 4. Step 1: Create a new component(reactiveformex.component.ts) and add following code. import { Component,...