import { Component } from '@angular/core' ; import { QueryParamBuilder , QueryParamGroup } from '@ngqp/core' ; declare const require ; @ Component ( { selector : 'demo-replace-url-example' , templateUrl : './replace-url-example.component.html' , } ) export class ReplaceUrlExampleComponent { public replaceParamGroup : QueryParamGroup ; public noReplaceParamGroup : QueryParamGroup ; public markup = require ( '!raw-loader!./replace-url-example.component.html' ) . default ; public typescript = require ( '!raw-loader!./replace-url-example.component.ts' ) . default ; constructor ( private qpb ) { this . replaceParamGroup = this . qpb . group ( { text : qpb . stringParam ( 'q1' ) , } , { replaceUrl : true } ) ; this . noReplaceParamGroup = this . qpb . group ( { text : qpb . stringParam ( 'q2' ) , } , { replaceUrl : false } ) ; } }