TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Elegant token-based API access with AngularJS

2 pointsby robotrobotover 11 years ago

1 comment

rchawdryover 11 years ago
Loved this post. Though I would consider myself an intermediate Angular dev, I had a really hard time understanding how the config block was written. Will probably spend a fair amount of time reviewing the structure of the promise returns.<p>One question --&gt; If a user needs to re-authorize via a login screen, let&#x27;s say they login successfully and the server returns a token. How (or does) the code continue the original request?<p>Thanks