AngularJS Cheat Sheet

July 30, 2017 | Author: Zulqarnain Hashmi | Category: Scope (Computer Science), Json, J Query, Angular Js, Constructor (Object Oriented Programming)
Share Embed Donate


Short Description

AngularJS Cheat Sheet...

Description

AngularJS Cheat Sheet

by ProLoser via cheatography.com/1600/cs/513/ Filters

Directives

Global Functions

amount | currency[:s ymbol]

ng-app="plaintext"

angular.bind(self, fn, args)

Formats a number as a currency (ie $1,234.56). date | date[ :format] array | filter:expression Selects a subset of items from array. Expression takes string|Object|functi on() data | json Convert a JavaScript object into JSON string. array | limitTo:limit Creates a new array containing only a specified number of elements in an array. text | linky Finds links in text input and turns them into html links. string | lowercase Converts string to lowercase. number | number[:fracti onSize]

ng-bind[-html-unsafe]="expression" ng-bind-template="string" ng-change="expression" ng-checked="boolean" ng-class[ -ev en| -od d]="string|object" ng-[dbl]click="expression" ng-cloak="boolean" ng-controller="plaintext" (Content Security Policy) ng-disabled="boolean"

Converts string to uppercase. You can inject the $filter service and do $filt er( 'fi lterNa me' )(v alue[, :optional Par am][, :optional Par am]) in use it in your javascript.

ng-hide|show="boolean" ng-href="plaintext{{string}}"

ng-init="expression"
View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF