Protractor Tutorial

Protractor is a Node.js program which is used for testing of Angular JS applications. It is combination of Selenium, Jasmine, Webdriver etc. Along with Angular JS applications protractor can also be used in testing of normal web applications. Installation of Protractor: Protractor installation and configuration Advantages and disadvantages of protractor Locators and Sample

This Article is TAGGED in , . Read more

How to create/build web application in Angular?

1. Download and install Node Package Manager(npm) Link to download npm (https://nodejs.org/en/download/) 2. Then install ANGULAR CLI globally Open cmd and Run command [crayon-62bbf3d5f1e3e850781070/] It can install angular globally 3. To Check version on command [crayon-62bbf3d5f1e46505023330/] [crayon-62bbf3d5f1e48689862812/] [crayon-62bbf3d5f1e4a548151325/] 4. Create new project Open terminal and run command [crayon-62bbf3d5f1e4b797771870/] Here we create project name my-app Angular cli installs npm packages and creates project files 5. Run

This Article is TAGGED in , . Read more

What is $rootScope in angular js?

An AngularJS application has a single $rootScope. All the other $scope objects are child objects. The properties and methods attached to $rootScope will be available to all the controllers. The following example demonstrates the $rootScope and $scope object. [crayon-62bbf3d5f245c016721399/] and the output looks like  [crayon-62bbf3d5f2461866288426/] Drop comment if you have any query. :)

This Article is TAGGED in , . Read more

Select all, deselect all in angular material.

Consider we have page status list. [crayon-62bbf3d5f2981891527377/] then out html looks like as, [crayon-62bbf3d5f2988661384592/] and her we have 2 functions for select/deselect all. [crayon-62bbf3d5f298b030081907/] If you have any query then drop a comment.:)

This Article is TAGGED in , . Read more

Excel download in asp.net MVC with angular js which fetch data from server side with client side filters.

Consider we are downloading page name, description in excel. 1. we need to declare which field to includes from list for excel download. [crayon-62bbf3d5f2f33338037691/] In html file. we are declaring 2 buttons. one is hidden. from shown button we will click to hidden button which will apply fiilter on data that comes from

This Article is TAGGED in , , , , , . Read more

Add custom filter on list with paging in angular material

we have angular object  [crayon-62bbf3d5f38ef621263077/] In above, we have one pages objects which stores page list and page count. Consider, we have page status filters. which values is stored in 'filterData.selectedPageStatus' object that is we are passing to page custom filter. so out html looks like below [crayon-62bbf3d5f38f4330964622/] Now, add below code in app.js [crayon-62bbf3d5f38f6675300811/] Here we done.  Please

This Article is TAGGED in . Read more