Job description
Princeton University, Laboratory for Artificial Intelligence • Princeton, NJ
html The reasoning behind the double title is due to the fact that the browser will load up the first title it sees. So if Angular has not yet loaded and I try to do a standard default syntax: {{$ctrl.$state.data.pageTitle || 'String'}}, the title in the browser tab will actually output {{$ctrl.$state.data.pageTitle}} and it just looks messy. This strategy below will display the first legitimate title it sees, 'Apply - Interfolio', and then once Angular is ready, it will update the title to be the proper one for the particular route. This keeps the ugly curly braces from appearing for the first few seconds. Apply - Interfolio {{$ctrl.$state.data.pageTitle}} - Apply - Interfolio