2

In Java we use something like this:

Class<?> classType = Class.forName(className);

How can we achieve the same goal with Angular?

2
  • 1
    How can we achieve the same goal with TypeScript?* Angular is just a framework. Commented Aug 27, 2017 at 10:02
  • @SharikovVladislav oh yeah you're right my bad :) Commented Aug 27, 2017 at 10:03

1 Answer 1

0

In case it's just object , you can convert like this

let a = 'object string';let jsObj = JSON.parse(a);console.log(jsObj);
Sign up to request clarification or add additional context in comments.

1 Comment

no this is not my case, I just want the class type !

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.