Hello everyone.
I'm new in the world of angularjs and ventured in app design of individual commercial region. Basically are some cities where every city has some categories and each category has some subcategories. Within the subcategories there will be a list of advertisers.
The navigation flow is as follows: The user clicks on the desired city, then click the category, then the subcategory, then the advertiser, displaying the relevant information to the desired advertiser. There will be 4 different views.
My problem is, as do the filtering that way? I've read some articles about angularjs, but found nothing instead filtering on two levels.
I am using static information for now, as follows:
var cities = [
];
var categories = [
];
var subcategories = [
];
var advertisers = [
{ name: "Advertiser1", desc:"Description", city:"City1", category: "Category3", subcategory: "Subcategory4"},
{ name: "Advertiser2", desc:"Description", city:"City4", category: "Category1", subcategory: "Subcategory3"},
{ name: "Advertiser3", desc:"Description", city:"City2", category: "Category4", subcategory: "Subcategory1"},
{ name: "Advertiser4", desc:"Description", city:"City3", category: "Category2", subcategory: "Subcategory2"}
];
I don't know how to proceed, if I should create directives or custom filters or whatever that.
I hope someone can help me, because I have no idea :|.
Thanks!