I've been stuck on this one for quite some time, basically when I go to a 
specific URL – let's say /index/new – I don't want to "refresh" the view, 
all I want to do is trigger a method inside my controller.

The reason for this is that I'm using Masonry 
(http://masonry.desandro.com/), and would like to filter different types of 
posts, of course when I filter I don't want to refresh the page, I want to 
keep the nice animations.

Currently my router looks like this:

app.config(function($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'partials/jobs-list.html',
controller: 'JobsController'
})
})

Which is fine, it means that when I go to the index, it will load 
jobs-list.html, however when I go to /index/new, I still want to load this 
job-list.html, but just want my posts filtered without actually refreshing 
the view.

Is something like this possible with the default router in Angular?

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to