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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.