Question

Folks,

I am trying to include angular-snap in my project but for some reason it is not functioning as it should.

I have created a plunkr for the same: http://plnkr.co/edit/sLV087z27H2bpJDm1XIJ

For those who are familiar with angular-snap.. kindly advice what I am missing here ?

Was it helpful?

Solution

I think there might be a bug with <snap-content> as an element. This plunker works as advertised.

I forked your plunker so everything should be the same. The only change I made was to replace the markup with this:

<snap-drawer>
  <div>I should be hidden</div>
</snap-drawer>

<div snap-content>Hello! I'm your main content!</div>

OTHER TIPS

Came across this trying to find angular-snap since it's disappeared from GitHub. Thanks for the copy I'll grab from the Plunkr.

Your issue appears to be an accidentally closed div?

<div snap-drawer id="shelf-1"></div>

Removing the </div> on that line left it working normally. Your IDE may have plunked that in without you noticing.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top