I know there are couple sample on github, such as:
Is there simple sample js code without using any framework, such as AngularJs?
Solved! Go to Solution.
Thank you for the reply.
The link you provide is very useful, but I have to use web brower develper tool to copy the code then strip out 90% of js libs, css, code which I don't need for understanding what is the only neccessary js libs and js functions for my own code.
If there are some sample code which only contains the following items will be nice:
--js function to request token
--then request power bi pages with token
--then display in the div place holder.
This will be easy to integrate into my own code and start to learn it.
Thanks for all the information. They are all very helpful.
I also found this one is more close to what I need.