mgechev / aspect.js

JavaScript library for aspect-oriented programming using modern syntax.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

class name return wrong name that return "n"

ahmedalattar opened this issue · comments

when i build the project angular application with aspect the method name return right but the class name returned n just only n in all classes name

image

Is this after ng build --prod? My guess is that the minified has mangled your code and renamed the method.

first i really thank you very mush for your amazing effort and your quick reply .
you are right that happen after ng build --prod and deploy it in wildfly server
i don,t know why really this happen in class name and doesn't,t happen in method name why class ?

The minifier has its own heuristic on how not to break your code. I'll close the issue here since it doesn't seem related to aspect.js.

i take this way to stop the minifier with "ng build --build-optimizer=false" and everything work right
successPNG

but i have another question when the args return [object Objecrt] any way to display the content of this object i try json.stringify but not work ???

It's not a good idea to disable the build optimizer. I'd recommend you to instead of relying on the symbol name use the reference. If you disable the optimizer you'll make your app load faster.

please i don,t understand your meaning if you can give me example to use reference instead of use name of class ?? @mgechev