Posts

Showing posts with the label Angular

How to solve "Running script disabled/Execution policy" error in Angular CLI ?

Image
 While working on angular we use command line for running script to execute commands for angular like "ng generate component comp-name" , "ng generate module mod-name", many other,  but sometimes you may face error like this,  this is snapshot of my vscode angular cli error. To solve this, you just have fire one single command from same terminal , " Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser " As we can see after this command my command for module generation executed successfully, and no error shown like above. Thanks 

Why Typescript ?

  Why Typescript   Typescript is open source programming language developed and maintained by Microsoft. It is super-set of JavaScript and adds optional static typing to the language. Typescript is designed for development of large applications, which compiles to JavaScript. Can be executed on any browser.   Typescript supports OOPs features such as classes, interfaces, inheritance, generics etc.   Need of Typescript There were many challenges faced by Microsoft while handling large scale enterprise applications. So, solution was to develop a language which is rich in features and can be transpiled to JavaScript. As our browsers only understand JavaScript. It can be compiled to JavaScript. That is why Typescript is called as Superset of JavaScript.   JS is client-side scripting language. We can do DOM manipulation, client-side validation, event handling etc.   But as the complexity of the code increases, it becomes difficult to maintai...