Learning Angular for .NET Developers by 2017
Author:2017
Language: eng
Format: epub
Published: 0101-01-01T00:00:00+00:00
TypeScript and Angular
* * *
As you have seen in this chapter, TypeScript comes with strong type-checking capabilities and supports object-oriented programming. Due to such advantages, the Angular team has chosen TypeScript to build Angular. Angular was completely rewritten from the core using TypeScript, and its architecture and coding pattern was completely changed, as you saw in Chapter 2, Angular building blocks part 1, and Chapter 3, Angular building blocks part 2. So, writing an Angular app using TypeScript is the best choice.
We can implement modules in Angular similar to modules in TypeScript. Components in an Angular application are actually a TypeScript class decorated with @Component. Modules can be imported to the current class file using import statements. The export keyword is used to indicate that this component can be imported and accessed in another module. The sample component code that is developed using TypeScript is as follows:
import {Component} from '@angular/core' @Component({ selector: 'my-component', template: '<h1>Hello my Component</h1>' }) export class MyComponent { constructor() { } }
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Hello! Python by Anthony Briggs(9912)
The Mikado Method by Ola Ellnestam Daniel Brolund(9777)
Dependency Injection in .NET by Mark Seemann(9337)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7778)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7557)
Svelte with Test-Driven Development by Daniel Irvine(7132)
Test-Driven Development with PHP 8 by Rainier Sarabia(6860)
Layered Design for Ruby on Rails Applications by Dementyev Vladimir;(6727)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(6532)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6409)
Web Development with Django by Ben Shaw Saurabh Badhwar(6196)
React Application Architecture for Production by Alan Alickovic(5921)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5806)
Kotlin in Action by Dmitry Jemerov(5062)
Audition by Ryu Murakami(4583)
Software Architecture for Web Developers by Mihaela Roxana Ghidersa(4439)
Hands-On Full-Stack Web Development with GraphQL and React by Sebastian Grebe(4316)
Accelerating Server-Side Development with Fastify by Manuel Spigolon Maksim Sinik & Matteo Collina(4286)
Functional Programming in JavaScript by Mantyla Dan(4037)
