danielepiccone / ng-pageslide

AngularJS sliding panel for serving additional content from off the page
http://danielepiccone.github.io/ng-pageslide/examples/
452 stars 162 forks source link

Adds timeout to directive #145

Closed wiggitamoo closed 6 years ago

wiggitamoo commented 7 years ago

Adds timeout to directive: This provides the ability to append custom id's create in an ng-repeat.

When trying to reference a dynamic id of a widget

<li "ng-repeat="w in widgets">
    <div id="widget-{{w.id}}"></div>
</li>

i'm trying to bind the id to ps-container from within the same ng-repeat without success

<pageslide ps-container="widget-{{w.id}}">
    <div>
        <p>some random content...</p>
    </div>
</pageslide>

To solve this problem I am adding a $timeout to the directive so that the container id's get added after the dom has compiled.