0 votes
in Programming by (400 points)

I have created a library that takes input variable type as a string.
app.componant.html

<my-lib [query] ="query"></my-lib>


app.componant.ts

export class Query {
  elQuery: string=""
}

In my-lib I have an input box that takes query as ngModel whenever I update query in-app it gets reflected to my-lib. But whenever I update the query in the library it won't update back. Can anyone tell me how I can update value of query in app?

Please log in or register to answer this question.

...