angular 2获取元素id

时间:2017-12-21 12:08:31

标签: angular typescript angular-template

我必须在焦点上传递元素ID。我尝试了很多语法,对我来说没什么用。

我不能将@Viewchild用作动态创建的。

struct Foo
{
    int x;
    int y;
    void Function_C(){/*use x and y*/}
    void Function_B(){Function_C();}
    void Function_A(){Function_B();}
};

int main(){
    int x,y;
    std::cin >> x >> y;
    Foo f{x, y};
    f.Function_A();
}

1 个答案:

答案 0 :(得分:1)

没有表达式传递

CREATE TABLE temporarytable ( 
 thetype     INT4, 
 acode       INT4, 
 acodea      INT4 DEFAULT 0, 
 aname       VARCHAR(50), 
 anameb      VARCHAR(50), 
 agcodec     VARCHAR(16), 
 agnome      VARCHAR(40), 
 acoded      INT4, 
 abname      VARCHAR(80), 
 ancode      INT4, 
 clieone     VARCHAR(80), 
 adate       DATE, 
 aqtifromi   NUMERIC(20, 6) NULL DEFAULT 0, 
 avaluei     NUMERIC(20, 6) NULL DEFAULT 0, 
 discxxtt    NUMERIC(20, 6) NULL DEFAULT 0, 
 somemore    NUMERIC(20, 6) NULL DEFAULT 0, 
 gaining     NUMERIC(20, 6) NULL DEFAULT 0, 
 valcms      NUMERIC(20, 6) NULL DEFAULT 0, 
 liqidd      NUMERIC(20, 6) NULL DEFAULT 0, 
 theback     NUMERIC(20, 6) NULL DEFAULT 0, 
 theprct     NUMERIC(20, 6) NULL DEFAULT 0, 
 somesll     NUMERIC(20, 6) NULL DEFAULT 0, 
 theccod     INTEGER 
) 

<强> CODE

  (focus)="relationsFocusAutoComplete(i)"