This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hi,
I have added momentJs to my project to allow for an activity stream to show when something happened relative to now. i.e a few seconds ago, a minute ago etc.
When the page loads it's all fine and I can see 'a few seconds ago' if I add {{today}} to my page, relating to the following in my component ts file. However, this never updates on my page.
today: string = moment().fromNow();
I have also added the following to 'scripts' in my angular-cli.json
"../node_modules/moment/min/moment.min.js"
Can anyone help me get this working??
Subreddit
Post Details
- Posted
- 6 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/Angular2/co...