Leveling Up with Angular
Angular is a deep technology. What we’ve learned so far can take you a long way in your full-stack career and allow you to grow a large codebase that is fully unit tested and well organized. There are two other bits of Angular that you’ll find useful: pipes and services. Pipes are akin to a Rails view helper—bits of code to assist in formatting text in your views. Services are a way to decompose complexity in your components or share logic between them.
Formatting View Content Using Pipes
You may have noticed that the “joined at” date in the complex view we created in Chapter 11, Asynchronously Load Data from Many Sources, is not terribly user-friendly. It shows the entire date/time stamp in a programmery way: 2016-07-18T15:22:40.248Z. ...
Get Rails, Angular, Postgres, and Bootstrap, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.