As an exercise I have developed a lightning app which replicates the standard related list functionality in a lightning page. I had put this app in an iframe in a visual force page so it looked like a standard related list. It worked quite well until Winter 16 has been released. I saw that there is a recommendation for embedding lightning on vf pages since winter 16. - "Add Lightning Components to Visualforce Pages"
This is how the page looked like with the iFrame:
This is how it looks like now using the Lightning.Use function:
MY VF Code is:
<script>
$Lightning.use("c:AssetList", function() {
$Lightning.createComponent("c:ListView"
,{}
,"lightning"
,function(component){console.log("create comp");});
});
</script>
My lightning app code is:
The problem is that the css and the references to custom labels has been broken. Is there any special css consideration I need to care for when using this functionality or is anything wrong with my code?