camptocamp / ngeo

Library combining OpenLayers and AngularJS
https://camptocamp.github.io/ngeo/master/examples
MIT License
135 stars 87 forks source link

Curly brackets visible in browser tab title before Angular initialization #2618

Closed llienher closed 7 years ago

llienher commented 7 years ago

Currently the app translations are loaded when Angular finishes loading. Title is defined in the templates as:

<title>{{'Desktop Application'|translate}}</title>

This result to some curly brackets briefly showing in the browser tab page title, as:

{{ 'Application Desktop'|translate }}

{{ 'Application Mobile'|translate }}

The solution I found was to replace with the following code:

<title ng-bind-template="{{'Desktop Application'|translate}}"> Desktop Application </title>

The default value (here 'Desktop Application' as well) is of course adaptable in each project.

ybolognini commented 7 years ago

Please put 'GeoMapFish' instead of 'Desktop Application'