thank you Sander i'm newbie i didn't know that, now the route navigation 
works
but the parameters are empty
<div class="formelementfloat">checkin</div><div class="formelementfloat"> 
<input type="text" ng-model="checkin" jqdatepickerin name="checkin"/>
and this is the code
 module.directive('jqdatepickerout', function () {
    return {
        restrict: 'A',
        require: 'ngModel',
         link: function (scope, element, attrs, ngModelCtrl) {
            element.datepicker({
                dateFormat: 'DD, d  MM, yy',
                onSelect: function (checkout) {
                    scope.date = checkout;
                    scope.$apply();
                }
            });
        }
    };
});
      module.directive('jqdatepicker', function () {
    return {
        restrict: 'A',
        require: 'ngModel',
         link: function (scope, element, attrs, ngModelCtrl) {
            element.datepicker({
                dateFormat: 'DD, d  MM, yy',
                onSelect: function (checkout) {
                    scope.date = checkout;
                    scope.$apply();
                }
            });
        }
    };
});  


the datepicker work but the parameter are empty this is the url in the 
address bar
http://www.mywebsite.com/demolab/?p=466#/route3/:/:
could you help me?
thank you very much
Roberta
Il giorno lunedì 8 settembre 2014 19:18:10 UTC+2, Sander Elias ha scritto:
>
> Hi Roberta,
>
> A ngClick <https://docs.angularjs.org/api/ng/directive/ngClick>is quite 
> different from an (ng)Href 
> <https://docs.angularjs.org/api/ng/directive/ngHref>. 
>
> you are passing in the literal string '/route3/:{{checkin}}/:{{checkout}}' 
> as a parameter to your checkAvailability function.
> If you really want to go this route, you must do something like this: 
> ng-click="checkAvailability('/route3/'+checkin+'/:'+checkout);"
>
> Regards
> Sander
> ​
>

-- 
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