Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

.component template function not accepting annotations #13645

@ninjasort

Description

@ninjasort

Given a component:

import angular from 'angular';

export default {
  bindings: {},
  template: [
    '$element',
    '$attrs', 
    function ($element, $attrs) {
      return [
         '<div class="search-input">',
        '</div>'
      ].join('');
    }
  ],
  controller: [
    'Search', 
    function (Search) {}
  ]
};

The controller works, however the template doesn't accept the annotations and returns a string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions