DEV Community

Discussion on: Thoughts On Creating Forms using Angular Pipes

Collapse
 
bradtaniguchi profile image
Brad

"Whoa" is the first thing that comes to mind when I see pipes used to create the DOM in Angular, never thought about taking that approach at all haha! Idk how efficient it is to take this approach, or if there are massive pitfalls to this approach either.

Have you looked into how this approach compares to the more traditional approach of using a directive (specifically a structural directive) to modify the DOM?

Collapse
 
ahkohd profile image
Victor Aremu

No, not at all, was just trying to experiment. Will have a deeper look into this, but what I do think is that pipes might give a lot of syntactic freedom and abstraction. Imagine using this approach to create some sort of pipe-elements

{{ 'a' | PipeElement:{href:'http://dev.to'} }}