Skip to content

What is the relation with URL and templateUrl ?  #1175

@chandraflyrobe

Description

@chandraflyrobe

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'
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions