I am trying to display a title on the image. When I am on the signing page, the data-bind title working fine and I can see the title displaying over the image. However, as soon as I sign in, the data-bind title stops working.
_layout.cshtml
<nav class="navbar navbar-fixed-top">
<div class="container" style="width:100%">
<div class="navbar-header" style="height:50px">
<a asp-area="" asp-controller="Home" asp-action="Index" class="navbar-brand"
style="margin-left:2px;margin-top:12px;padding:0px;margin-top:7px">
<img style="margin-top:4px;height:32px;" data-bind="attr: {title: versionNumber()}" src="~/images/Scheduler-transparent.png" />
</a>
</div>
@await Html.PartialAsync("_LoginPartial")
</div>
</nav>
JS file that gets value I want to display on the logo
// versionNumber.js
var versionNumber = ko.observable('');
var url = window.location.origin + '/account/GetVersionNumber';
CallService("Get", url)
.done(function (data) {
versionNumber(data);
console.log("Version number", versionNumber());
});