Chad
Chad

Reputation: 490

Angular.js Foundation Modal Issues

So I'm trying to follow this post: What is the AngularJS way of handling a modal like this

I copied in everything and now I'm getting an error:

TypeError: Object [object Object] has no method 'reveal'

I'm still trying to learn how all of this works so sorry if this is obvious.

Upvotes: 1

Views: 3102

Answers (1)

Muhammad Reda
Muhammad Reda

Reputation: 27023

I used to have the same issue, that I was not able to get Foundation Reveal to work within my AngularJs App. But I fixed this issue by adding the following code

app.run(function($timeout){
    $timeout(function() {
        $(document).foundation();
    }, 500);
});

Well, I don't know any explanation for that, but it solved the issue.

Update:

Now there's an angular port that makes use of foundation javascript plugins. It has support for many foundation javascript plugins including Modal.

Github repository and demos.

Upvotes: 2

Related Questions