Created
May 17, 2017 07:31
-
-
Save openopen114/2fb6e4f9684d7b98b834c8c1e15994ab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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