I want to create a wrapper component for saturn-datepicker, as the plan is to use it in a few different applications for now and possibly switching it out at a later time. I am quite new at Angular, but forked and created a "working" example from a Stackblitz I found here.
The problem is that it is only working in edit-mode - when I try to run the code in VS Code, or with the normal link, I get the error
ERROR DOMException: Failed to execute 'setAttribute' on 'Element': '#' is
not a valid attribute name.
I guess this has to do with how I set the name for the input - and it probably is related to the initial stackblitz being set up with Angular 5? Any pointers on how to fix this would be greatly appreciated. Also, what is the best practice for retrieving data (like startdate, enddate) from the different child elements?
Edit: I'm trying to create a "wrapper" around the datepicker - so that it can be implemented and used in applications now, but swapped out with a different one at a later time (changing only code inside the wrapper, not in the applications themselves). Right now this case is specific to the datepicker, but it is possible the same would be needed for other libraries later.