Run your First Angular Hello World Project in Microsoft Visual Studio Code IDE. Visual Studio Code is one of the best editors for developing Angular applications. If you already downloaded Visual Studio Code Editor follow the below steps to begin your first application in Angular. Getting Started with Angular Typescript Project in Visual Studio Code
Angular
Angular Radio Button example
Angular Radio Button example is demonstrated in this post. First, generate a radio button component and html template using the ng g c radioButton command. In the previous post, we had discussed the checkbox example in various ways. Radio Button Reactive Form Example The radio button is described using reactive forms. radio-button.component.ts In the radio
Angular Checkbox example using Reactive forms
Angular checkbox using various ways is demonstrated here. Reactive Forms is used here. ReactiveFormsModule and FormsModule should be declared in AppModule as we are using Reactive forms. CheckBox Component Checkbox HTML If you see the above example, it uses checkbox FormControl separately, when checkbox control grows it will be difficult to use the above code.
Where Observables can be used in Angular
Data TransmissionFormsControlsIt can be used in ServiceRouters Data Transmission EventEmitter can be used in data transmission between child and parent. Angular has EventEmitter class and Output decorator that is used in data transmission between child and parent. EventEmitter class extends RxJS Subject. Subject extends Observable. So EventEmitter is a kind of Observable. When a value
Angular Observables vs Promises
In this post we will see the difference between Observables and Promises . Observable vs Promises To handle asynchronous data either Promises or Observables can be used. Promises can be executed immediately. Observables are lazy. They are executed only after subscription. Subscrition to Observables are done through subscribe() method. Observables are based on publisher subscriber