WiseLoop JavaScript Network Speed Tester offers a highly customizable AngularJS directive that can be invoked using many attributes:
AngularJS Network Speed Tester Directive Attributes
Test control
- auto-trigger: specifies if the test should auto-start immediately after the page loads.
Default value: "true" - trigger-go: controls the test starting; set this to "true" from your AngularJS application in order to start the test.
Default value: "false"
Tests and accuracy
- iterations: specifies how many times the test will run against the server; use this attribute smartly: higher value comes with higher precision but also with higher testing times and payloads
Default value: "10" - show-ping: specifies if the ping test should be performed
Default value: "true" - show-download: specifies if the download test should be performed
Default value: "true" - show-upload: specifies if the upload test should be performed
Default value: "true" - show-cost: specifies if the reference internet cost will be shown;
Default value: "true" - speed-measure-unit: speed measure unit; must be one of those: 'bps', 'Bps', 'Kbps', 'KBps', 'Mbps', 'MBps', 'Gbps', 'GBps'
Default value: "Mbps" - unit-cost-per-byte: the reference internet cost will be calculated using this constant by multiplying it with the measured download speed expressed in bytes/second; this value represents the amount that the user should pay per a single byte download bandwidth
Type: float, Default: 0.000019073486328125
UI customization
- show-refresh-button: specifies if a Refresh button should be displayed for each test type (ping, download, upload)
Default value: "true" - show-comparison: specifies if a comparison chart will be shown; the comparison chart is a set of common network type speeds
Default value: "true"
Localization
- locale-seconds: seconds text
Default value: "seconds" - locale-you: you label caption text
Default value: "You" - locale-ping: ping results title caption text
Default value: "Ping" - locale-download: download results title caption text
Default value: "Download" - locale-upload: upload results title caption text
Default value: "Upload" - locale-cost: internet cost title caption text
Default value: "Internet Cost" - locale-unit-cost: internet cost caption text for the unit price section
Default value: "Unit Price" - locale-total-cost: internet cost caption text for the total amount section
Default value: "Total Amount" - locale-currency: currency used to express the reference internet cost (ex. '$', 'Euro' etc.)
Default value: "$" - locale-billing-period: the time interval which the internet provider sends two invoices (ex. 'month', 'semestre', 'year' etc.)
Default value: "month"
For more information please see the Using the Directive chapter.