ace
ace copied to clipboard
Set page title dynamically
I am trying to set the page title (in the TopAppBar) dynamically but can't find a way to do this. Can anyone please tell me how to do it through Javascript?
I have tried many different ways, but the method I thought should work (ace.getHostPage().setTitle('My Title');
) just fails silently.
What happens if you use this branch?
https://github.com/frederikbosch/ace/tree/merged?files=1
There are more nice features in there but I am lacking time to create PRs
I decided to not use Ace in the end, but I tried that branch anyway but with it added I could not run my project. To be honest it could be something I did wrong when adding the plugin as I'm not too experienced with git. What I did was to fork your branch then downloaded it locally and added it to my project with the "phonegap plugin local add" command. I did not get any build errors, it was as if a javascript error was occurring, terminating the code.