09/06/2016 Development / java script

Insert in your html, attribute data-component="nameComponent"

and javascript Debug View

function debugComponent(){
    
    

    $("[data-component]").each(function(index, item){

var modulo = $('<div>').css({'position': 'absolute', 'top': 0, 'left' : 0, 'z-Index': 1000, 'right': 0, backgroundColor: '#fff', 'color': '#000', 'fontSize': '10px'})

var obj = $(item);

        var cmpt = obj.data("component");

        obj.css({"border": "1px solid red", 'position': 'relative', 'display': 'block'}).append(modulo.text(cmpt))

    })
}