[AngularJS] Re: how to add (click) to a component from another component?

2017-10-01 Thread Sander Elias
Hi Simon, Look up viewChildren in the documentation . You can use that to add a event handler to your children. Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To

Re: [AngularJS] Re: bypassSecurityTrustHtml stripts angular form tags

2017-10-01 Thread Zlatko Đurić
Sorry, my mistake, typing that on a phone without checking. You don't need sanitizer here. Put the "actions" prop directly into the template. On Oct 1, 2017 9:01 PM, "Turkel" wrote: > The HTML which I m fetching is : >> > > {"actions":"Password<\/label>\r\n\t\t\t

[AngularJS] Re: bypassSecurityTrustHtml stripts angular form tags

2017-10-01 Thread Turkel
After an hour of trying :D I got following error: Argument of type '{ template: SafeHtml; styles: string[]; }' is not assignable to paramete r of type 'Component'. Types of property 'template' are incompatible. Type 'SafeHtml' is not assignable to type 'string'. Could you please see my

[AngularJS] Re: bypassSecurityTrustHtml stripts angular form tags

2017-10-01 Thread Turkel
> > The HTML which I m fetching is : > {"actions":"Password<\/label>\r\n\t\t\t"} actions variable contains HTML for which linked within component. -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this

[AngularJS] Filtered search box

2017-10-01 Thread 'Keith Smith' via Angular and AngularJS discussion
Hi All, I have a form that filters items on a page, if for example I select filters to narrow down the results it all works fine Once I click the results this takes me to new page. The problem I have is if I go back the the filters have all reset and I have to keep re-selecting them Can

[AngularJS] how to add (click) to a component from another component?

2017-10-01 Thread Simon Carr
I am just getting started with Angular 4 and I like the idea of discrete reusable components. I am trying to see if am also able to reduce the amount of repeated code that I write. As an example. Lets say I have a suppliers component, with a supplier-table.component.ts that provides a sortable

[AngularJS] Re: bypassSecurityTrustHtml stripts angular form tags

2017-10-01 Thread Turkel
> > Yes I agree, Angular not considers this form as part of page just showing > it. Which type of dynamic component, what need to be function of this component? -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To

[AngularJS] bypassSecurityTrustHtml stripts angular form tags

2017-10-01 Thread Zlatko Đurić
The problem is that such form (or anything you passed in via sanitizer) is outside of angular scope. Simply said, angular doesn't know about your form. You could, after you pass the form in, try and attach your own listener to the form, but that's messy and probably buggy and has other problems