Issue
I am currently using angular 2.0 and in typescript file I want to declare a variable which is a list of string array. I am doing something like this yAxis_val: list which is not working.
Please let me know the correct way to do it.
Solution
You can define a string array as follows:
public yAxis_val: string[][];
To initialize you would do:
public yAxis_val: string[][] = [];
Answered By - Teddy Sterne
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.