It is fixed! It is necessary to compile this string in order to add the behaviuor inside the DOM.
Only add:
var compiled = $compile(str_content)($scope);
var str_content = compiled[0];
and above, in the controller add $compile.controller('nameController', function($scope, ..., $compile) {