I have written a simple app with [email protected], and it works great. Now that I am testing it with the latest version of the alpha and beta avaible on npm, and I keep wondering if I really really changed or I am caching something.
I want to do something like the below on my root component
export class ChromeComponent { ngOnInit() { console.log('angular version'); } }
angular.version
on the console return undefined
Test that the TypeScript is installed correctly by typing tsc -v into your terminal or command prompt. You should see the TypeScript version print out to the screen.
It is very easy to know the typescript version in the Angular 13 project. First change to the application directory and run the ng –version command. Typescript 4.4. 4 is the latest version used in the Angular 13 application.
Angular 7 uses TypeScript version 3.1.
Angular 14 is the most prominent release by Google for web development, based on TypeScript. Angular 14 also supports the latest TypeScript 4.7 release. By default, Angular 14 targets ES2020, allowing the CLI to send smaller code without having to down-level.
Update since 4.0.0-rc.1
Version is added for root selector in the DOM
Since angular2 version 2.3.0-rc.0 you can get version as follows:
import { VERSION } from '@angular/core'; export class AppComponent { constructor() { console.log(VERSION.full); // print 2.3.0-rc.0 } }
Or you can just open browser console and check body
tag
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With