combining directives with controller

to crate data table with directive and controller