Eric --
Was unaware of onInit(). Thanks so much! That did the trick.
Also, I'd like to use this for one-time initialization -- I don't need a
watcher on 'mytext'. From what I understand what I'm looking for is an
attribute rather than a property, then? I tried using
<multiselect [attr.mytext]="'Mary'"></multiselect>
in the HTML, and
@Component({
selector: 'multiselect', // Use <multiselect></multiselect> tags in
HTML to use
attributes: ['mytext']
})
in the .ts file, but this results in 'mytext' being undefined when onInit()
is called.
--
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.