<div dir="ltr"><div><div><div><div>Hi<br></div>I am doing a portal with angularJS and the backend with java, and it seems to be working with the basics.<br></div>I am having trouble figuring out a way to do the following:<br></div>I have a table user with info like username, email and userid, avatar, etc, and I want to update that table with the user info if it is the first time they log in.<br><br></div>The only way I can think to do this is to create a controller and set it on all my pages so it looks if the user is already in the database, but it seems like it will try to do that all the time, which doesnt seems practical.<br><br><br></div>