Example #1
0
module.exports = function() {
  return transclude({
    scope: {
      ngModel: '=',
      ngDisabled: '='
    },
    template: `
      <label class="confirmation">
        <input type="checkbox" ng-model="ngModel" ng-disabled="ngDisabled">
        <span transclude></span>
      </label>
    `
  });
};
Example #2
0
module.exports = function() {
  return transclude({
    scope: {
      ngModel: '='
    },
    template: `
      <div class="checkbox">
        <label>
          <input type="checkbox" ng-model="ngModel">
          <span transclude></span>
        </label>
      </div>
    `
  });
};
Example #3
0
  return function() {

    return transclude({
      scope: {
        iconFirst: '=',
        icon: '@'
      },
      restrict: 'EA',
      template: `
        <a class="icon-link ${opts.className || ''}">
          <span ng-if="${iconFirstCondition}" class="glyphicon glyphicon-${opts.icon || '{{icon}}'}"></span>
          <span transclude></span>
          <span ng-if="${iconLastCondition}" class="glyphicon glyphicon-${opts.icon || '{{icon}}'}"></span>
        </a>
      `
    });
  };
Example #4
0
module.exports = function() {
  return transclude({
    template: `<div class="navigation-links" transclude></div>`
  });
};
Example #5
0
module.exports = function() {
  return transclude({
    template: `<div class="controls__buttons" transclude></div>`
  });
};