Type Script array example
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]) } }
Installation of type script in visual studio code | Lecture -1
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...
angular 4 reactive form example
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 reactiveformex and...
angular 4 nested formgroup example
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,...