Loading states and indicators
Loading states are used before page content is ready.
Ghost card
Ghost cards are used while page content is loading to indicate to the user that content is on the way.
Example
$tg-ghost-colourUse the ghost colour on loading elements to show where different content will be.
Example
$tg-ghost-opacityGhost opacity can also be used on loading elements to show where different content will be - this is not normally used in conjunction with ghost colour.
Loading spinner
This directive is deprecated.
We recommend using loadingtgButton2
[tgLoading]
It displays a spinner to indicate something is loading by binding an ObservablePromise[tgLoading]PromiseObservable
The loading spinner should only ever be used after an action. For example, ‘Loading’ is used on buttons that trigger an action on the same page, e.g. “Load more results”.