Created
July 28, 2017 19:23
-
-
Save mindscratch/16b7f34b3916c2f5e9514a9d8a95105b to your computer and use it in GitHub Desktop.
angular component binding problem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
angular.module('myapp') | |
.component("parent", { | |
bindings: { | |
childTemplateUrl: '@?' | |
} | |
}) | |
.component("child", { | |
bindings: { | |
customTemplateUrl: '@?' | |
} | |
}); | |
</script> | |
<child custom-template-url="{{$ctrl.childTemplateUrl}}" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment