Nagaraju Bende

Similar documents
Formatting cells. Microsoft Excel Cell alignment. Format cells options

ANGULARJS - MOCK TEST ANGULARJS MOCK TEST II

Date and Time Functions

Nagaraju Bende

Using Custom Number Formats

Using Microsoft Excel

Adobe EchoSign Calculated Fields Guide

a Very Short Introduction to AngularJS

The DDE Server plugin PRINTED MANUAL

1. Introduction to Microsoft Excel

Database Programming with SQL 5-1 Conversion Functions. Copyright 2015, Oracle and/or its affiliates. All rights reserved.

Convert Date to Lilian Format (CEEDAYS) API

The Direct Excel Connection plugin PRINTED MANUAL

EnableBasic. The Enable Basic language. Modified by Admin on Sep 13, Parent page: Scripting Languages

Agenda & Reading. VB.NET Programming. Data Types. COMPSCI 280 S1 Applications Programming. Programming Fundamentals

MagicListbox Description. MagicListbox. A Listbox Component from Simon Berridge RealStudio 2011 R4.3.

Single Page Applications using AngularJS

Visual C# 2012 How to Program by Pe ars on Ed uc ati on, Inc. All Ri ght s Re ser ve d.

Flexible Rate Card Importer

AngularJS Fundamentals

LED sign s Control Commands V1.23 (use for LED sign firmware V4.8 up)

Examples. Alexander Walker May 26, 2018

Mail Merge Word 2016

Configuring Log Parsers Step-by-Step Quick Start Guide April 24, 2008

Vanguard Appraisals, Inc. CAMA-X. Advanced Query Wizard And Pro-Version Report Design

rebus:list Documentation

About Me. Name: Jonathan Brown. Job: Full Stack Web Developer. Experience: Almost 3 years of experience in WordPress development

1. Introduction to Microsoft Excel

What is AngularJS. à Javascript Framework à MVC à for Rich Web Application Development à by Google

Public Function randomdouble(lowerbound As Double, upperbound As Double) As Double On Error Resume Next

Using Microsoft Excel

SOGETI ANGULARJS TRAINING

Supplier Training for Catalog Manager

GoldenGate Client Xtra Reference Manual

Microsoft. Student Edition. The Richard Stockton College of New Jersey. Computer Courseware

ANGULARJS INTERVIEW QUESTIONS

Easily manage database using Pivot Tables

NCSS Statistical Software. The Data Window

Vanguard Appraisals, Inc. CAMA-X. Advanced Query Wizard And Pro-Version Report Design

A variable should be added to the Action Flow, where you can bind it to one of the Recorder Variables and set its value and other properties.

Configuring Log Parsers Step-by-Step Quick Start Guide September 10, 2009

Quick Reference Guide. Online Courier: File Transfer Protocol (FTP) Signing On. Using FTP Pickup

MiVision Report Writer Guide. Corporate Payment Card Solutions

Flexible CSV CDR Importer

Analytics External Data Format Reference

SQL Structured Query Language Introduction

AngularJS AN INTRODUCTION. Introduction to the AngularJS framework

Table Of Contents. Table Of Contents

SUDOREPLAY(8) System Manager s Manual SUDOREPLAY(8)

Instructor s Notes Java - Beginning Built-In Classes. Java - Beginning Built-In Classes

- MEAN Stack חזרה. MongoDB - as the database Express - as the web framework AngularJS - as the frontend framework NodeJS- as the server platform

Importing, Exporting, and ing Data

Ordering an ipad from Amazon.com Small Image Report. Created by: Adrian For: Sliding Mind

Creating Effective Websites using AngularJS

Using AngularJS In APEX. Dan McGhan Senior Technical Consultant

Excel's functionality falls into three different categories:

Objectives Reading SAS Data Sets and Creating Variables Reading a SAS Data Set Reading a SAS Data Set onboard ia.dfwlax FirstClass Economy

MIS 2502 Access 2007 Tutorial

Enter the term you are searching for in the Search For field. Choose Search to start.

Can I sort data without using the Sort dialog box?

TABLEAU AND METRIC INSIGHTS - ALL YOU NEED TO KNOW

Scheduling. Scheduling Tasks At Creation Time CHAPTER

Tables & Lists. Organized Data. R. Scott Granneman. Jans Carton

Date & Time Handling In JAVA

Report Writing: Basic Steps

WKn Chapter. Note to UNIX and OS/390 Users. Import/Export Facility CHAPTER 9

STAT 7000: Experimental Statistics I

Linux & Shell Programming 2014

Logging Mechanism. Cisco Logging Mechanism

AngularJS. Beginner's guide - part 1

AuditConfigurationArchiveandSoftwareManagementChanges (Network Audit)

ZX-17 Serial Real-Time Clock application board

Access Objects. Tables Queries Forms Reports Relationships

CS 1110 Prelim 1 March 7th, 2013

This job aid details the process for reviewing GL Balances with the Account Inspector.

WORDPRESS QUERY PARAMETERS

Centre for Staff & Educational Development (CSED) Discover your potential. Excel. Next Steps in

Microsoft Office 2011 for Mac: Introductory Q&As Excel Chapter 3

GPS Pathfinder Office Software and the GPS Analyst Extension: Creating User-defined Base Providers

Smart Install in LMS CHAPTER

Lesson:9 Working with Array and String

JavaScript Framework: AngularJS

Quick Guide. Managing Existing Projects

AngularJS Introduction

SWITCH(DatePart("w",DateOfYear) IN(1,7),"Weekend",DatePart("w",DateOfYear) IN(2,3,4,5,6),"Weekday") AS DayType,

Extending Ninox with NX

BEGINNER PHP Table of Contents

PricePrint 7 User Guide

Spreadspeed Help File

Device management commands 1

A Tutorial for Excel 2002 for Windows

Jobtrain Basics Client Guide. January 2019

Introduction to. Excel XP Bob Booth December 2004 AP-Excel5. University of Sheffield

Crystal Reports. Overview. Contents. Cross-Tab Capabilities & Limitations in Crystal Reports (CR) 6.x

What s new and changed in Adobe ColdFusion (2016 release) Update 3

Bpm online sales. Team Package User Guide

START CONVERTING FROM TEXT DATE/TIME VALUES

Strings in Visual Basic. Words, Phrases, and Spaces

Online Business Account How to view and download reports

SMART HR Add the Primary Status to the Binoculars select box display.

Transcription:

AngularJS Nagaraju Bende

Blog Twitter @nbende FaceBook nbende

Agenda Filters in AngularJS

Basic usage with expressions To make filters interact with the expression, we just need to put them inside double curly brackets: {{expression filter}} Also, the filters can be combined, thus creating a chain where the output of filter1 is the input of filter2, which is similar to the pipeline that exists in Linux/Unix-based operating systems: {{expression filter1 filter2}}

Filters Filters in view templates: {{ expression [ filter_name[:parameter_value]... ] }} Two type of filters: Filter format Filter array

Angular Filters number currency date lowercase Uppercase json

currency The currency filter is used to format a number based on a currency. The basic usage of this filter is without any parameter: {{ 10 currency}} The result of the evaluation will be the number $10.00, formatted and prefixed withthe dollar sign. We can also apply a specific locale symbol, shown as follows: {{ 10 currency:' '}}

date The date filter is one of the most useful filters of the framework. Normally, a date value comes from the database or any other source in a raw and generic format. Basically, we can use this filter by declaring it inside any expression. In the following example, we have used the filter on a date variable attached to the scope: {{ user.birthdate date }} The output will be Dec 10, 1990. However, there are numerous combinations we can make with the optional format mask: {{user.birthdate date:'mmmm dd/mm/yyyy HH:mm:ss' }} When you use this format, the output changes to December 10/12/1990 21:42:10.

Optional. The date format to display the date in, which can be one or more of the following: "yyyy" year (2016) "yy" year (16) "y" year (2016) "MMMM" month (January) "MMM" month (Jan) "MM" month (01) "M" month (1) "dd" day (06) "d" day (6) "EEEE" day (Tuesday) "EEE" day (Tue) "HH" hour, 00-23 (09) "H" hour 0-23 (9) "hh" hour in AM/PM, 00-12 (09) "h" hour in AM/PM, 0-12 (9) "mm" minute (05) "m" minute (5) "ss" second (05)

The format value can also be one of the following predefined formats: "short" same as "M/d/yy h:mm a" (1/5/16 9:05 AM) "medium" same as "MMM d, y h:mm:ss a" (Jan 5, 2016 9:05:05 AM) "shortdate" same as "M/d/yy" (1/5/16) "mediumdate" same as "MMM d, y" (Jan 5, 2016) "longdate" same as "MMMM d, y" (January 5, 2016) "fulldate" same as "EEEE, MMMM d, y" (Tuesday, January 5, 2016) "shorttime" same as "h:mm a" (9:05 AM) "mediumtime" same as "h:mm:ss a" (9:05:05 AM)

filter very usefull clientside filtering with no effors This filter attribute performs exactly what is needed for rich filtering, acting over an array and applying any filtering criteria. <td>{{j.job_desc uppercase }} </td> <td>{{j.min_lvl currency : 'INR' }} </td> <td>{{j.min_lvl currency : 'INR' }} </td> <tbody ng-repeat="j in Jobs filter:search">

limitto Sometimes, we need to display text, or even a list of elements, and it might be necessary to limit its size. This filter does exactly that and can be applied to a string or an array. example where there is a limit to the expression: {{ expression limitto:10 }} lowercase The lowercase filter displays the content of the expression in lowercase: {{ expression lowercase }} uppercase The uppercase filter displays the content of the expression in uppercase: {{ expression uppercase}}

orderby With the orderby filter, we can order any array based on a predicate expression. This expression is used to determine the order of the elements and works in three different ways: String: This is the property name. Also, there is an option to prefix + or to indicate the order direction. At the end of the day, +plate or -plate are predicate expressions that will sort the array in an ascending or descending order. Array: Based on the same concept of String's predicate expression, more than one property can be added inside the array. Therefore, if two elements are considered equivalent by the first predicate, the next one can be used, and so on. Function: This function receives each element of the array as a parameter and returns a

Filter Array in ng-repeat <input type="text" ng-model="search" /> <ul> <li ng-repeat="n in names orderby:'name' filter : search limitto : 3 "> </li> </ul> {{n.name}}

Filters

Using Filters in Controllers & Services Add a dependency with the name <filtername>filter to your controller or service. angular.module('mymodule', []).controller('filtercntrl',['filterfilter', function(filterfilter) { }]); this.array = [{name:'tobias'},{name:'jeff'},{name:'brad'}]; this.filteredarray = filterfilter(this.array, 'a');

Using $filters $filter('filter name') return filter. angular.module('mymodule', []).controller('filtercntrl',function($filter) { }); this.array = [{name:'tobias'},{name:'jeff'},{name:'brad'}]; var filterfilter = $filter('filter'); this.filteredarray = filterfilter(this.array, 'a');

Custom Filter Reverse: {{ greeting reverse }}<br> Reverse + uppercase: {{ greeting reverse : true }}<br> angular.module("demo", []).filter('reverse', function () { return function(input, uppercase) { var out = ""; for (var i = 0; i < input.length; i++) { out = input.charat(i) + out; } // conditional based on optional argument if (uppercase) { out = out.touppercase(); } return out; };

Thank you! @nbende nbende.wordpress.com www.linkedin.com/nbende