Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

137
Views
Integrate FlowJs with angular 2?

I know there is no direct integration of FlowJs with angular2 so i am trying to implement it by following ways but didn't get any success:

By Declare direct:

Included flow.js script file in index.html and following is the code of component.ts file:

import { Component, OnInit } from '@angular/core';
declare var Flow: any;

@Component({
    selector: 'dashboard-page',
    templateUrl: 'dashboard.component.html'
})

export class DashboardComponent implements OnInit {
    public message: string;

    constructor() {
        this.message = 'Dashboard';
    }
    ngOnInit() {
        var flow = new Flow({
            target: '/api/photo/redeem-upload-token',
            query: { upload_token: 'my_token' }
        });
    }
}

In this its giving me error: ' Flow is not defined'

By using @typings:

I have installed the @typings by @types/flowjs and then installed flow.js by using "npm install --save-dev @flowjs/flow.js" and then i have written following code in my component:

import { Component, OnInit } from '@angular/core';
import * as Flow from "@types/flowjs"; 
//or

//import * as Flow from "flowjs"; @Component({ selector: 'dashboard-page', templateUrl: 'dashboard.component.html' })

export class DashboardComponent implements OnInit {
    public message: string;

    constructor() {
        this.message = 'Dashboard';
    }
    ngOnInit() {
        var flow = new Flow({
            target: '/api/photo/redeem-upload-token',
            query: { upload_token: 'my_token' }
        });
    }

}

But in this its giving an error: "/node_modules/@types/flowjs/index.d.ts' is not a module".

How can i implement FlowJs with angular2?

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!