Skip to main content

Posts

Showing posts from April, 2020

Angular Directives

Before move to directives need to understand what is component? and what is directive? In the above figure we have these two elements, component and directive Directive:- It have some logic but not contains the structure Component:- It is an element that specifies directive element and have the list of other directive instances. Why directives are used in angular?        use to change the appearance behavior or layout of Document Object Model(DOM) helps to extend HTML It can be classified into 3 categories:- 1.Component Directives:- Used in main class. It possess the detail about how the component processed at run time. 2.Structural Directives:- They are responsible for HTML layout. Changing the DOM structure by adding,removing or manipulate the elements. It starts with * symbol. These are the examples of Structural directives. ngIf Directive:- Use to add or remove the HTML element according to the expression. ngfor Directive:- Use to repeat a portion of HTML templ...

Angular 8 Introduction

First need to know about what is Angular? open Source: It means product gives permission to use its source code, design documents, or content. Platform for developing client-side web applications: Client side refers to the software that users interact with that run on their web browser. Client side web development involves interactivity and collecting or displaying data. i.e it is use for front-end development. It is also use to create dynamic web applications . It means we can change data/information through time-to- time, location-to-location and user-to-user. Type Script framework: It is a Type Script based JavaScript framework. It is written in Type Script and compiled in to JavaScript. Because browser can only understand JavaScript. Type Script is a type safe language i.e it is ensure that an operation is working on the right kind of data type. Versions of Angular framework Angular JS : Angular JS is a JavaScript based open-source front end web framework developed and maintain...