をangularjs、ショーのdiv要素は、ユーザーがボタンをクリックした場合、私は、インドのプロパティ情報を持つdiv要素を持っている
ページが別のページにリダイレクトされなければならないと私の全体のdivが
をコピーする必要がありますそして別のページで開い
<div class="box2">
<div style="">
<img src="2.jpg" style="border: 2px solid #EEEEEE; height: 180px;" class="col-lg-6 col-md-6 col-sm-12 col-xs-12" />
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12 select">
<div class="borderdiv">
<span ng-repeat="i in data2" style="font-size:16px; font-weight:bold">{{i.A}}</span>
</div>
<div class="borderdiv">
<span ng-repeat="i in data2" style="font-size:12px; font-weight:lighter">Available For <b>{{i.B}}</b> </span>
</div>
<div class="borderdiv">
<span ng-repeat="i in data2" style="font-size:14px; font-weight:normal">Area <b>{{i.C}}</b> Security <b> Rs. {{i.F}}</b></span>
</div>
<div class="borderdiv">
<span ng-repeat="i in data2" style="font-size:14px; font-weight:normal">Rental Unit In<b style="cursor:pointer"> {{i.D}}</b></span>
</div>
<br />
<div class="borderdiv">
<span ng-repeat="i in data" style="font-size:14px; font-weight:normal">
Features
<br />
<span class="glyphicon glyphicon-eject" style="margin-left:20px;"></span>
<span class="glyphicon glyphicon-chevron-left" style="margin-left:20px;"></span>
<span class="glyphicon glyphicon-chevron-right" style="margin-left:20px;"></span>
</span>
</div>
<br />
<div class="borderdiv">
<span ng-repeat="i in data2" style="font-size:14px; font-weight:normal">{{i.E}}</span>
</div>
</div>
</div>
これは私のdiv
<button ng-click="click()">click to view data</button>
これは私のボタンであります
他のページで同じデータを見たい場合はどうすればいいですか?
2ページ目は、同じプロジェクトまたは別のプロジェクト/ウェブサイトにあるのですか? –
同じプロジェクト\ ... –
他のページで同じHTMLコード(DIV)を使用できます。ボタンをクリックすると、$ rootScopeにオブジェクトを保存し、次のページの$ rootScopから再度読み取ることができます。 –