Skip to content

angular-templates default export with path #1311

@trajano

Description

@trajano

The current default export in angular-templates just returns an empty object. Can we add the path name for the template as part of the object so we can refer to it symbolically rather than a string?

import editTemplate from './todo-edit.tpl.html'
import listTemplate from './todos.tpl.html'
...
     views: {
          'content@app': {
            templateUrl: listTemplate.url,
...
     views: {
          'content@app': {
            templateUrl: editTemplate.url,
...

FYI, I didn't see an angular-templates repository, is there one? I don't use angular-meteor as per the example in the updated angular todos app.

I'm using ui-router as a dependency.

When reporting a bug, please be sure to include the following:

  • A descriptive title
  • An isolated way to reproduce the behavior (example: GitHub repository with code isolated to the issue that anyone can clone to observe the problem)
  • What version of angular-meteor you're using, and the platform(s) you're running it on
  • What packages or other dependencies you're using
  • The behavior you expect to see, and the actual behavior

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions