I am new to Angular and am working with angular2.
I have an object that is in the index.html (generated by my server on the
fly) that I need to get into the main app.
what I have now is
var appdata = {
"sess" : "29",
"error" : "",
"cmd" : "home",
"collection" : "foobar",
"uid" : "pwd",
"fullpath" : "/home/",
"path" : "",export class Home {
isloading = true;
sdata;
@Input() appdata = {};
"colname" : "Early Development System"
};
Inside of a <script></script> in the index.html and
<home [appdata]="appdata">
inside of the body. in the app itself I have
export class Home {
isloading = true;
sdata;
@Input() appdata = {};
....
but when I do a console.log of the appdata It is empty.
Within components I have used @Input without problem so I
think that I understand how to use it.
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.