22
schangxiang@126.com
2025-08-23 c798f6df065b776b9390b4a2e773d2c05fbe1caf
1
2
3
4
5
6
7
8
9
angular.module("testApp", []).directive("sayHello", function() {
  return {
    scope: {
      to: '@to'
    },
    restrict: "E",
    template: '<p>Hello {{to}}</p>'
  };
});