AngularJS 지시 다이내믹 템플릿 스코프 값에 따라 다른 템플릿으로 디렉티브를 작성하려고 합니다. 지금까지 한 일이지만 왜 안 되는지 모르겠다.http://jsbin.com/mibeyotu/1/edit HTML 요소: 지시: var app = angular.module('myApp', []); app.directive('dataType', function ($compile) { var testTemplate1 = 'Test1'; var testTemplate2 = 'Test2'; var testTemplate3 = 'Test3'; var getTemplate = function(contentType){ var template = ''; switch(contentType){ case 'test1': ..