ang2-tag-cloud
Angular Tag Cloud
Installation
To install this library, run:
$ npm install ang2-tag-cloud --save
and then from your Angular AppModule
:
;; ; ;
Usage it in your code
attributes
tags : array of tags or array of objects , required. data source for tag list ( if its an object array then each object must contain a key "name" to hold the tag name" onSelect : callback function that is executed when a new tag is selected. e.g. (onSelectionChane)="onSelectionChane($event)"minFontSize : number, minimum allowed font sizemaxFontSize : number, maximum allowed font sizeanimateTags : if true then we will show animation effect on the tag cloudrandom : if true then the animation will be random way
'tags' can be an array of string or array of objects, sample array: tagArray = ["html","css","Js"] OR tagArray = [{ name:"html" value:1 },{ name:"css" value:2 },{ name:"js" value:3 }]