O'Reilly logo

Rails, Angular, Postgres, and Bootstrap, 2nd Edition by David B. Copeland

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required