I have integrated some external libraries into my ionic project.
One of these libraries includes the declaration of var loading = false;
In my page's .ts file, I am "importing" this variable using:
declare var loading;
Although I can use this variable in functions and other parts of the code, I am facing an issue with displaying it on the page itself. Using the following syntax does not work:
{{ loading }}
I also attempted to create a function that returns the variable (
public load = function(){return loading;}
), but it is not functioning properly. Sometimes when the variable changes automatically, the page fails to detect it and update the text accordingly.
Is there a solution to this problem?