Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

How to make custom pipes application-wide?

$
0
0

@jpmckearin wrote:

The code below does not seem to work when I attempt to use the pipe on a page within my app. I am not sure if the App decorator works in this manner or if I am missing something. The idea is to not have to inject CustomPipe into every page that needs it as most pages will use it.

import {CustomPipe} from './pipes/customPipe';

@App({
    templateUrl: 'build/app.html',
    config: { },
    pipes: [CustomPipe]
})

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles