Thanks Sander. Seems to make sense. I have been messing around with them
this morning, and I think you are right in that my use-case is perfect. The
more I am working in it, the more I am able to get things working. I was
even able to get a directive working within the element! There is one
caveat though. I am trying to pass in an array(responses) to my element
using the following syntax:
<radio-btn-element
elements=3
responses ='[This is default response #1,This is
default response #2,This is default response #3]'>
</radio-btn-element>
and the input as follows:
export class RadioBtnElementComponent implements OnInit {
@Input() responses:any[];
@Input() message:string = '';
@Input() elements:number = 1;
@Input() numbers:any[]
However, responses is strictly being sent in as a string. It's not being
seen as an Array. Any thoughts on why?
Thanks again for all of your help. It's been a game changer.
Best regards,
Scott
On Fri, Dec 28, 2018 at 12:38 PM Sander Elias <[email protected]> wrote:
> Hi Scott,
>
> As you need them in the same app there is no problem building them. You
> just expose them as custom elements. This makes them available to be
> consumed as normal HTML in the dynamic pages you are loading. You only need
> special packaging if you want to use them outside your own app. Tooling to
> make this easier is coming along, but that might take a while to
> materialize.
> But your use-case is perfectly suited for Angular elements. As those are
> part of your application you can inject whatever you need.
> There are some samples available, but I don't recall any right now. If I
> have some time, I will add a sample to my samples repo.
>
> Regards
> Sander
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Angular and AngularJS discussion" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/angular/PnHiXroP-VI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" 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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.