私はいくつかのフォームでng-repeatを持っています。各フォームには、ユーザーを$ stateParam(userId)を使用して/ userProfileにリダイレクトする必要があるボタン - プロファイルの編集があります。ボタンタグからhtmlにナビゲート
これは私のコードです:
<button type="button" class="btn btn-grey btn-ripple">Edit profile</button>
私は成功と、次の試してみました:
<a href="/userProfile?userId={{staff.UserId}}" class="btn btn-grey btn-ripple">Edit profile</a>
は - ファインワークスませんが、CSSが<a>
タグ
<button>
タグを<a>
に入れようとしましたが、仕事。
私はHTML形式で、JavaScriptは作成しません。私はform
タグとaction=url
で試して、うまくいきません、彼は"http:\\"
URLにアクセスしようとします。
提案がありますか?
<button type="button" ng-click="location.assign('/userProfile?userId=' + staff.UserId)" class="btn btn-grey btn-ripple">Edit profile</button>
をあなたは角度JSを使用していますか? – Christoph
はい、私はlocation.path(URL)を試しましたが、文字 "?"コード化されたものになる、URL doens'tはもう働かない – TrulyXax
あなたは私たちにCSSを見せることができますか? –