In my Clojure program (using Hiccup), I'm looking to get the value of a text field when a user clicks on a button, and then append that date to a URL. I've attempted to use "ng-model" from AngularJS, however this results in the following error:
java.net.URISyntaxException: Illegal character in path at index 11: /dashboard/{{date}}
The code I currently use is below:
(text-field {:class "form-control" :ng-model "date"} "date" date)
[:a {:class "btn btn-primary" :href "/dashboard/{{date}}"} "Submit"]