Angular filter
sraHex source
The sraHex Filter converts a number to a hex string.
Dependencies:
Name | Type | Description |
---|---|---|
value | number | The number to convert. |
length | integer | (Optional) The minimum length of the resulting string left padded with zeros, default 0. |
prepend | String | (Optional) A string to prepend to the result after padding. Example "0x" or "#". |