plugin not working, routes and jquery

0

I'm using this plugin to explore routes with jQuery without having to migrate to AngularJS. But I'm not getting 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 wrong in specifying?

link

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

    
asked by anonymous 23.11.2014 / 17:14

1 answer

1

I think we have a syntax error.

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