I started a new site on foundation for apps which has ui-view element:
<section id='gallery' ui-view>
</section>
This element by default loads home.html which contains a list of posts' previews that is generated through ng-repeat:
---
name: home
url: /
---
<div class="grid-block medium-up-4">
<div class="grid-block vertical gallery-items" ng-repeat='galleryItem in galleryItems | filter: tag' ng-class="{ 'hidden': ! showDetails }">
<div class="grid-block" ng-mouseover='hoverInfo = true' ng-mouseleave='hoverInfo = false'>
<a ui-sref="galelem" class='gallery-element grid-block vertical'>
<span class='preview'>{{galleryItem.tags | divideTags}}</span>
<p>However beautiful the strategy, you should occasionally look at the results.</p>
<div ng-show='hoverInfo' class='hover-info grid-block vertical'>
<span class='on-hover'>{{galleryItem.tags | divideTags}}</span>
<span class='view'>View Gallery</span>
</div>
</a>
</div>
<hr>
<div class="grid-block">
<div class="grid-block meta"><span>{{galleryItem.date}} / <span class='comments'> {{galleryItem.comments}} Comments</span></span></div>
<div class="grid-block social-small ">
<a href=""><i class='fa fa-envelope'></i></a>
<a href=""><i class='fa fa-facebook'></i></a>
<a href=""><i class='fa fa-twitter'></i></a>
</div>
</div>
</div>
</div>
When I click on an anchor tag with ui-sref='galelem', ui-view loads another html file with detailed information about the post:
---
name: galelem
url: /galelem
---
<div class="post-element grid-block vertical">
<img src="http://placehold.it/1200x600" alt="" class='main-image'>
<div class="grid-block vertical text-info">
<span class='preview'>{{galleryItem.tags}}</span>
<p>However beautiful the strategy, you should occasionally look at the results.</p>
<div class="grid-block meta"><span>{{galleryItem.date}} / <span class='comments'> {{galleryItem.comments}} Comments</span></span></div>
<div class="grid-block social-small ">
<a href=""><i class='fa fa-envelope'></i></a>
<a href=""><i class='fa fa-facebook'></i></a>
<a href=""><i class='fa fa-twitter'></i></a>
</div>
<hr>
<a href="">previous post</a>
<a href="">next post</a>
<span>Embeded Code</span>
<pre class='embeded-code'>
<h3>VAGNER HERNANDEZ</h3><p class="imgC"><a href="http://elpassion.com/post/97850349571"><img src="http://38.media.tumblr.com/6fd0334606ad04b061abda2d462d3f2c/tumblr_nc2n0tAsmp1r46py4o1_1280.jpg" /></a></p>
</pre>
<div class="feedback">
<p><img src="http://placehold.it/25x25" alt=""><span>bj_unoxx </span>reblogged this from<span>constellation</span></p>
<p><img src="http://placehold.it/25x25" alt=""><span>mike_dosxx</span>reblogged this from<span>constellation</span></p>
<p><img src="http://placehold.it/25x25" alt=""><span>tre_leparc</span>submitted this to<span>constellation</span></p>
</div>
</div>
</div>
When i click the 'a' element site load page with detailed information, but without information from angular such as {{galleryItem.tags}}. I want this html file with detailed information to get the data about the clicked post and display the same information that contains in preview. How can i do this? So far my js file contains only one object from which ng-repeat gets its data. I tried to look for answer but failed to find it as a am new to angularjs.