I know this might be a day late and all... but if you are still using 
"ng-for" that has changed to "ngFor" as of alpha 55 or so.

On Tuesday, November 17, 2015 at 11:46:41 PM UTC-6, Mark Rathwell wrote:
>
> Hello,
>
> I must be missing something, but can't figure this out.  With the 
> following components:
>
> @Component({
>
>     selector: 'component-one',
>
>     template: '<component-two *ng-for="#foo of foos" [foo]="foo"></
> component-two>',
>
>     directives: [ComponentTwo, NgFor]
>
> })
>
> export class ComponentOne {
>
>     foos: Array<string> = ['one', 'two', 'three'];
>
> }
>
>
> @Component({
>
>     selector: 'component-two',
>
>     template: '{{foo}}',
>
>     properties: ['foo']
>
> })
>
> export class ComponentTwo {
>
>     foo: string;
>
>
>     constructor(foo: string) {
>
>         this.foo = foo;
>
>         console.log(foo);
>
>     }
>
> }
>
>
> I am getting the error:  
>
>
> EXCEPTION: No provider for String!  (ComponentTwo -> String) in [null]
>
>
> As stated, I cannot for the life of me figure out why.  Any help would be 
> greatly appreciated.
>
>
> Thanks.
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" 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.

Reply via email to