Skip to content

Instantly share code, notes, and snippets.

@openopen114
Created May 17, 2017 07:31
Show Gist options
  • Save openopen114/2fb6e4f9684d7b98b834c8c1e15994ab to your computer and use it in GitHub Desktop.
Save openopen114/2fb6e4f9684d7b98b834c8c1e15994ab to your computer and use it in GitHub Desktop.
//component.ts
import { Component } from '@angular/core';
declare var foo: any;
import '../assets/foo.js';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'app works!';
a = 1;
b = 2;
fooObj: any;
constructor() {
this.fooObj = new foo(1, 3);
foo(11, 31);
}
c = new foo(2,3);
myFunc(a,b){
foo(a,b);
foo(this.a,this.b);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment