Skip to content

How to access ngCart.getTotalItems and ngCart.totalCost in my controller's view #97

@Jesus82

Description

@Jesus82

Hi, I would need to access ngCart.getTotalItems() and ngCart.totalCost() functions from my controller's view (in order to display some items conditionally based on the number of items added to the cart and the total cost of it). What would be the way to correctly accessing those functions? Should I create a service/factory for it?

Thanks in advance

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