CDK, loading and unloading elements from the DOM based on the visible parts of a list, and making it possible to build very fast experiences for users with very large scrollable lists. has been added to, loading and unloading elements from thebased on the visible parts of a list, and making it possible to build very fast experiences for users with very large scrollable displays large lists of elements performance by only rendering the items that fit on-screen. Thedisplays large lists of elements performance by only rendering the items that fit on-screen. is different from strategies like infinite scroll where it renders a set amount of elements and then when you hit the end renders the rest. Continue reading

And if you are using the package manager(npm) you can download through a command in terminal:

Now let’s first create our to-do list demo form for taking value from the user. As it is a template for our to-do app that makes us think where to perform the logical part so let us see further. As above we create a file named , so let’s create our app by giving any specific name for the angular application and its controller

Now let’s begin with the functioning part in which that it can create a list and also it can delete a marked data from the list. , And the function will put some actions in the form of adding and removing data from our to-do list. After completing the functionality of the app, now we will bind the functions of the app in our to-do form. Continue reading

Angular UI-Router is a client-side Single Page Application routing framework for AngularJS. We will be specifying every component in a different folder so starting with folder structure. let’s first implement the header view from there we will be linking our components using UI-router, as you can see our directory structure we have separated header and footer in the shared folder and other pages in components. Similarly create your own custom components i.e header, footer, home page, etc as the directory structure shown. you can see we have created our demo angularApp by implementing the module i.e ui-router imported from the CDN link and the other one app.routes, in that module we will create our custom routes. Continue reading

I was deeply conflicted about whether to use Angular or React for a long time. I’ll confess I haven’t used React at all, but I did do a lot of research beforehand and thought I’d share my 2 cents on why I settled with Angular. The JavaScript community that I’ve come to know online is very hyped regarding React, so I thought I’d make the case for why hobbyist developers should go with Angular. Continue reading

A Structural directive changes the DOM layout by adding and removing DOM elements.The two most common structural directives you’ll come across are ngIf and ngFor. Understanding the asteriskThe asterisk is syntactic sugar for something a bit more complicatedLet’s take for example the ngIf directive:Angular will wrap the host element with a template tag. The code above will generate this output —The ViewContainerRef also exposes the createEmbeddedView() method that takes a template and renders its content as a sibling to the container. Create Range Directive —You can see that in this case, we are passing the second parameter to the createEmbeddedView() method. ( it’s like we use ngFor=”let todo of todos” )The second approach is to expose your context as keys that you defined, for example:Now we can use our directive:You can create more advanced directives like ngFor but this is for another post. Continue reading

Unfortunately, the new Ivy Renderer is not part of this release, because not all of the features have been implemented to the satisfaction of the Angular developers. Additionally, TypeScript Release 3.1 is used and supported, so that Angular should be able to use its most important new language features. Finally, the platform server package of Angular (@angular/platform-server) in version 7 requires a new dependency, Domino 2.1, a server-side DOM implementation. See the following example from the Angular Schematic for ng new:

For Angular Elements the support for the official Shadow DOM specification improved. To avoid a premature release with an incomplete version of the Ivy Renderer, the Angular team subjects the new renderer to an internal test phase. Continue reading

As Angular 7 was out last week, I wanted to try a few things with the same and that is the cause for this article. If you are really new to Angular, and if you need to try some other things, visiting my articles on the same topic wouldn’t be a bad idea. But in the future, we can add a few more properties to the movie component and show them here. Once you have implemented all the steps, you will be having an application which uses Angular 7 Drag and Drop with actual server data. Continue reading

Angular and ReactOne thing that is really great about React in terms of performance is the Virtual DOM, which you’ve probably heard about a couple of times. So who uses which shoponefootballGoogle ExpressNBADelta

If you know of any large, well-known companies using Angular, please share with a link.TypeScript and JavaScript (ES6+)As I mentioned, it can be misleading to only compare Angular and React without focusing on the core language each one has to offer. It is important to notice that TypeScript was released in the period of ES5, and during that time, ES5 was not a class-based OOP language. Alright, so if you are still confused what statically typed means, check this out:Static typed propertyStatic typed property comparison between JavaScript and TypeScriptStatic typed argumentStatic typed argument comparison between JavaScript and TypeScriptI’ve learned that lots of people believe that a statically typed language means reliable code, and is most often used as a winning argument over dynamically typed languages. Takeaway notesReact handles memory-management efficiently (virtual DOM)React uses JavaScript (ES6), a recognized web-language since 1995Angular uses TypeScript, released in 2012Statically typed languages are great, but does note make code more reliableDynamically typed languages require less time to write and more flexibility to use your creativity (fewer typos)Learning a statically-typed language may be a challenge, especially if you’ve only been working with dynamically typed languagesES6 has implemented lots of great features such as modules, classes, spread operator, arrow functions, template literals that allows you to write less, cleaner and more structured code (syntactic sugar)TS is simply ES6+ with typos and more

ConclusionThe framework/component-library you choose may influence how much time you spend programming and your budget. Continue reading

In this post we assume a form field configuration like this:fields: FormlyFieldConfig[] = [ { key: 'name', type: 'input', templateOptions: { type: 'text', label: 'Name', }, }];The package versions we are using Validationngx-formly has built-in front-end validation and is quite easy to use. The validation function should be:Paramters: (ctrl: FormControl) , the form control being validated is passedReturn value: boolean, return whether validation is successful

This is super important as it improves the perceived performance of your application and also provides a reliable, flexible and efficient way to ensure that all search engines can access your content. This template includes a super easy way to set your meta tags dynamically so you can build an Angular SEO friendly application. Continue reading

Leveraging it, a PWA app can provide similar experience that of a native application with difference that a PWA app will run in the browser. Another notable difference between a PWA app and a native mobile application is that a PWA is deployed and accessible from web servers using a URL. Let us create a service that will fetches the data from a third party API that we are going to use in our Angular app. Angular CLI allows you to add PWA features to an existing application by runing a simple command from the terminal described below. This command automatically add basic configuration required for an angular app to turn into a PWA and starts by creating a new file called , adding different sizes of icons as assets and registering a service worker inside the file called . Continue reading

As we have seen in AngularJS to repeat the loop, we have to use the angular’s directive named as . As the new Angular 5 feature comes with the same functionality but its directive is named as . For previous AngularJS version we have to simply just import or linked the library in the project, but now the Angular 5 (TypeScript) has its requirements such NodeJS and Git Version Control (optional), Can be used from windows command prompt. on running the this will open up a pre build component of Angular Documentation

After installation, let’s create a component for any view but the scope of this tutorial was to learn about ngFor

Check out what are components? In AngularJS to display the data from an array as a list, we would use the directive, In Angular 5 we have the directive. Continue reading

Did we miss something? Do you have feedback on how we can improve? Contact us.