Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var $ = jQuery;
- module.exports = {
- init : function(){
- $(document).on('submit', 'form.searchform', function(e){
- if( window.angular ){
- e.preventDefault();
- var $form = $(e.currentTarget);
- var data = $form.serialize();
- var $injector = angular.element( $('html')[0] ).injector();
- var $location = $injector.get('$location');
- $location.path("/healthy-living/?"+data);
- }
- });
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement