plugin not working, Routes and jquery

Asked

Viewed 59 times

0

I am using this plugin to explore Routes with jQuery without needing to migrate to Angularjs. However I am not receiving the answer in the log box, which was to return with the following code

$.router.add(/items/:item", "foo", function(data) {
console.log(data.item);
});

What point am I missing specifically?

http://jsfiddle.net/kbsa5269/2/

In jsfiddle contains the plugin link and a demo, which is not working.

1 answer

1

I think we have a syntax error.

$.router.add("/items/:item", "foo", function(data) {
  console.log(data.item);
 });

Browser other questions tagged

You are not signed in. Login or sign up in order to post.