[AngularJS] Template Drive Form Validation Nested Components - A Failing Example

2017-01-26 Thread Ben Gill
Hi, I am trying to get form validation working and am having some issues. Given the following example(s): Scenario 1: Template Driven form, fields inline - THIS WORKS Is valid {{riForm.form.valid}} Create Scenario 2: Template driven form, fields in sub component - THIS DOES N

[AngularJS] Angular

2017-01-26 Thread Ben Gill
Hi, Has anyone got a sample of form validation working using Template driven form, where the form elements are dynamic in nested components? -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and

[AngularJS] Re: 2 way data binding on map

2016-07-29 Thread Ben Gill
> > Hi, > > My form is dynamic, and therefore I hold my form fields in the following > form: > model: ResourceInstance; in ResourceInstance I have: > > fields?: { [key: string]: models.FieldInstance; }; > > in FieldInstance I have: value?: models.FieldValue; where FieldValue is polymorphic.

[AngularJS] 2 way data binding on map

2016-07-29 Thread Ben Gill
Hi, My form is dynamic, and therefore I hold my form fields in the following form: fields?: { [key: string]: models.FieldInstance; }; I have tried a few variants but cannot find the right syntax: [(ngModel="model.fields[{{anElement.name}}]")] What is the syntax that will allow two way data

[AngularJS] window.open

2016-07-26 Thread Ben Gill
Hi, I want to use Window.open from one Angular (2) app, and open up a new tab to point to navigate directly to a specific controller/component, ie: localhost:/myPage?queryParam1=foo&queryParam2=bar When I do this, it seems to start the Angular 2 bootstrap process. So I kind of want to hit

[AngularJS] Dependency Injection question

2016-07-21 Thread Ben Gill
Hi, I have got an autogenerated api from Swagger (editor.swagger), and it generates this constructor: @Injectable() export class MyFirstApi { constructor(protected http: Http, @Optional() basePath: string) @Injectable() export class MySecondApi { constructor(protected http: Http, @Opti