Guest User

Untitled

a guest
Jan 19th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. <div ng-app="components">
  2. <input ng-model="var">
  3. <block>
  4. 123
  5. <input ng-model="var">
  6. </block>
  7. </div>
  8.  
  9. angular.module('components', []).directive('block',function(){
  10. return{
  11. scope:false,
  12. replace:true,
  13. restrict:"E",
  14. transclude:true,
  15. template:'<div class="block" ng-transclude></div>',
  16. link:function(scope, el, attrs, ctrl){
  17.  
  18. }
  19. }
  20. });
  21.  
  22. .ng-scope{
  23. border:1px solid red;
  24. margin:10px;
  25. }
Add Comment
Please, Sign In to add comment