pikaday-angular
pikaday-angular copied to clipboard
dynamic id for container
it doesn't find the element if I use a dynamic id for the container:
example: pika attr: container="option{{ $index }}Container" container attr: id="option{{ $index }}Container"
+1, same issue when using the trigger option.
The ID value on the trigger has not been resolved before the call to "document.getElementById(value);" so the return value is null.
A quick fix might be to wrap the initialization in $timeout to wait until the digest loop is completed or accept an element being passed in directly.