@Input is used to pass some value from a container component to child component
//... some code <child-component-tag [childVarName]="containerVarNameOrValue"></child- component-tag> "from one screen to other" .... ????? Il giorno venerdì 21 settembre 2018 17:57:51 UTC+2, Sudhir Kumar ha scritto: > > Hi All! > > What is the best way to persist variable/data between two sessions? > > Scenario: Suppose, if I want to pass string variable from one screen to > other screen, without data getting lost. > > Local variable or @input? > > Any help in this regard is highly appreciated! > > Thanks! > Sudhir > -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" 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.
