サービスポータルのようこそ画面でユーザー名を表示する方法<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #7057C7; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: block; max-width: ; width: auto; height: auto; } } この記事では、サービスポータルのようこそ画面にユーザー名を表示して、サインインしているユーザーに挨拶を表示する方法について説明します。 プロセス Angular スコープで利用可能なユーザーオブジェクトを使用して、次の手順を実行できます。 ホームページ検索ウィジェットのクローンを作成します。クローンされたウィジェットで、クライアントコントローラーを次のように変更します: function() { /* widget controller */ var c = this; c.data.greeting = 'Hi ' + scope.user.first_name; } HTML テンプレートの Angular ng-bind 値を data.greeting に変更します。 <h1 class="text-center text-4x m-b-lg sp-tagline-color" ng-bind="data.greeting"></h1> 適用可能なバージョン 利用可能なすべてのバージョン