Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the relation with URL and templateUrl ? #1175

Open
chandraflyrobe opened this issue Feb 14, 2017 · 0 comments
Open

What is the relation with URL and templateUrl ? #1175

chandraflyrobe opened this issue Feb 14, 2017 · 0 comments

Comments

@chandraflyrobe
Copy link

chandraflyrobe commented Feb 14, 2017

What is the relation with URL and templateUrl ? when i using state like below - always i am getting "localhost:3000/women/app/components/product/product.html" is not found (404) ... because, templateUrl is modifying .. 'app/components/product/product.html', to
"/women/app/components/product/product.html".

.state('root', {
url: '/',
templateUrl: 'app/main/main.html',
controller: 'MainController',
controllerAs: 'main'
})
.state('women-clothing', {
url: '/women/men-clothing',
templateUrl: 'app/components/men-clothing/women-clothing.html',
controller: 'MenClothingController',
controllerAs: 'womenVm'
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant