Edit in JSFiddle

function Demo(){}
Demo.annotations = [
    new angular.ComponentAnnotation({
        selector: "demo"
    }),
    new angular.ViewAnnotation({
        template: '<div [hidden]="true">Hidden</div><div [hidden]="false">Shown</div>'
    })
];
//do not need event listener in JSFiddle but will in
//you web app
/*
document.addEventListener("DOMContentLoaded", function(){
    angular.bootstrap(Demo);
})
*/
angular.bootstrap(Demo);
<demo></demo>
div {
    margin-top:50px;
    cursor:pointer;
}

External resources loaded into this fiddle: