Kolos
Kolos

Reputation: 411

Is there a way to reverse engineer result of "ng build prod" in angular2?

Is it possible to look at components, services and all the functions that generated this files in the first place?

Upvotes: 4

Views: 6620

Answers (2)

playerone
playerone

Reputation: 1127

You can look javascript code(bundled file) but you cannot see ts file since there are no mapping files. The best way to check is to open debug console F12 and see it yourself.

If you build your project in localhost with ng serve (ng build) you can see all your components and files.

Upvotes: 0

Mathias
Mathias

Reputation: 4569

Components yes,
Since they are all downloaded to the user, anyone could take the time to figure out how they are structured.
The same as any other website.

For the services, anyone can see what the calls are and what is returned.
The same as any other website.

Upvotes: 2

Related Questions