AngularJS会自动检查一次

I am new to Angular and had a request to do the following:

  1. User creates an account(Or any other activities).
  2. If user has not used account, lets say a week.
  3. I need to send them a notification. (I don't need to do this until no.1 and 2 is sorted)

Here are my thoughts:

  1. Save the date/time when user has created account (add date/time to all activities).
  2. Use something that constantly loops through all accounts.
  3. Check if activities in each account has not been used, maybe use a counter or bool to check if they had or not. If they had a return of true then do not compare date/time otherwise do so.

We are using php and ajax for our back-end scripting. Can you guys tell me what something is used for auto checking in angular and if you have a better solution can you share it. Thanks.