1

I am new to meteor, and after the tutorial have decided to migrate one of my MEAN stack applications to meteor. The problem I'm having is that the exact same angular route works when the location of the template file is in the root directory, but then does not work when I put it a different one.

This one works:

$stateProvider
  .state('winery_selection', {
    url: '/',
    templateUrl: 'winery_selection.ng.html',
    controller: 'WinerySelectionController',
  })

This one does not pick up the template at all:

$stateProvider
  .state('winery_selection', {
    url: '/',
    templateUrl: '/client/app/views/winery_selection.ng.html',
    controller: 'WinerySelectionController',
  })

The only thing I have changes is the location of the file and this line of code, respectively.

Any thoughts on why it only works from the root directory?

1 Answer 1

1

Looks like you need to remove starting \ from URL

templateUrl: 'client/app/views/winery_selection.ng.html'
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.