How to use Isotopes in Angular6?











up vote
-2
down vote

favorite












enter image description here



I have two set of categories(CategoryVerticals and CategoryHorizontals).
onclick of a single category (eg.. CategoryVertical 1) I need to display some data.
onclick of two categories(eg.. CategoryVertical 1 & CategoryHorizontal 2) I need to display some data.



Likewise I have to display some data onClick of all Combinations like these. As we are doing Isotopes in JQuery.



My Horizontal Categories:



<div class="col-xs-6 col-sm-6 col-md-4 col-lg-2">
<button type="submit" class="btn1" id="cat1" (click)="onClick('cat1');changeTrans();"
</button>
</div>
<div class="col-xs-6 col-sm-6 col-md-4 col-lg-2">
<button type="submit" class="btn1" id="cat2" (click)="onClick('cat2');changeCol();"></button>
</div>
<div class="col-xs-6 col-sm-6 col-md-4 col-lg-2">
<button type="submit" class="btn1" id="cat3" (click)="onClick('cat3');changeBus();"></button>
</div>


My Vertical Categories:



<li (click)="submitVertical1();"><a href="" routerLink="/link">CategoryVetical1</a></li>
<li (click)="submitVertical2();"><a href="" routerLink="/link">CategoryVertical2</a></li>
<li (click)="submitVertical3()"><a href="" routerLink="/link">CategoryVertical2</a></li>


My Component.ts file:



  changeTrans(){
this.flagTrans =true;
}
changeCol(){
this.flagCol = true;
}
changeBus(){
this.flagBus = true;
}
submitVertical1(){
this.vertical1 = true;
if(this.vertical1 == true && this.flagTrans == true{
this.flagVerticalAndTrans = true;
}
else if(this.vertical1 == true && this.flagCol == true{
this.flagVerticalAndCol = true;
}
else if(this.vertical1 == true && this.flagBus == true{
this.flagVerticalAndBus = true;
}
}
submitVertical2(){
this.vertical2 =true;
if(this.vertical2 == true && this.flagTrans == true{
this.flagVerticalAndTrans = true;
}
else if(this.vertical2 == true && this.flagCol == true{
this.flagVerticalAndCol = true;
}
else if(this.vertical2 == true && this.flagBus == true{
this.flagVerticalAndBus = true;
}
}


And in html:



<div *ngIf="flagVerticalAndBus">
sample content
</div>
<div *ngIf="flagVerticalAndTrans">
sample content trans
</div>
<div *ngIf="flagVerticalAndCol">
sample content col
</div>
<div *ngIf="flagVerticalAndTrans">
sample vertical trans
</div>
<div *ngIf="flagVerticalAndCol">
sample vertical col
</div>
<div *ngIf="flagVerticalAndBus">
sample vertical Bus
</div>


But it is not working. Or do we have any other way to implement this? Please suggest.










share|improve this question




















  • 1




    Asking for tutorials and examples is off-topic for Stackoverflow. Instead show us what you have tried and the problems you are having.
    – georgeawg
    Nov 9 at 16:51










  • @georgeawg I have updated my question. could you please check this?
    – viki
    Nov 9 at 18:00















up vote
-2
down vote

favorite












enter image description here



I have two set of categories(CategoryVerticals and CategoryHorizontals).
onclick of a single category (eg.. CategoryVertical 1) I need to display some data.
onclick of two categories(eg.. CategoryVertical 1 & CategoryHorizontal 2) I need to display some data.



Likewise I have to display some data onClick of all Combinations like these. As we are doing Isotopes in JQuery.



My Horizontal Categories:



<div class="col-xs-6 col-sm-6 col-md-4 col-lg-2">
<button type="submit" class="btn1" id="cat1" (click)="onClick('cat1');changeTrans();"
</button>
</div>
<div class="col-xs-6 col-sm-6 col-md-4 col-lg-2">
<button type="submit" class="btn1" id="cat2" (click)="onClick('cat2');changeCol();"></button>
</div>
<div class="col-xs-6 col-sm-6 col-md-4 col-lg-2">
<button type="submit" class="btn1" id="cat3" (click)="onClick('cat3');changeBus();"></button>
</div>


My Vertical Categories:



<li (click)="submitVertical1();"><a href="" routerLink="/link">CategoryVetical1</a></li>
<li (click)="submitVertical2();"><a href="" routerLink="/link">CategoryVertical2</a></li>
<li (click)="submitVertical3()"><a href="" routerLink="/link">CategoryVertical2</a></li>


My Component.ts file:



  changeTrans(){
this.flagTrans =true;
}
changeCol(){
this.flagCol = true;
}
changeBus(){
this.flagBus = true;
}
submitVertical1(){
this.vertical1 = true;
if(this.vertical1 == true && this.flagTrans == true{
this.flagVerticalAndTrans = true;
}
else if(this.vertical1 == true && this.flagCol == true{
this.flagVerticalAndCol = true;
}
else if(this.vertical1 == true && this.flagBus == true{
this.flagVerticalAndBus = true;
}
}
submitVertical2(){
this.vertical2 =true;
if(this.vertical2 == true && this.flagTrans == true{
this.flagVerticalAndTrans = true;
}
else if(this.vertical2 == true && this.flagCol == true{
this.flagVerticalAndCol = true;
}
else if(this.vertical2 == true && this.flagBus == true{
this.flagVerticalAndBus = true;
}
}


And in html:



<div *ngIf="flagVerticalAndBus">
sample content
</div>
<div *ngIf="flagVerticalAndTrans">
sample content trans
</div>
<div *ngIf="flagVerticalAndCol">
sample content col
</div>
<div *ngIf="flagVerticalAndTrans">
sample vertical trans
</div>
<div *ngIf="flagVerticalAndCol">
sample vertical col
</div>
<div *ngIf="flagVerticalAndBus">
sample vertical Bus
</div>


But it is not working. Or do we have any other way to implement this? Please suggest.










share|improve this question




















  • 1




    Asking for tutorials and examples is off-topic for Stackoverflow. Instead show us what you have tried and the problems you are having.
    – georgeawg
    Nov 9 at 16:51










  • @georgeawg I have updated my question. could you please check this?
    – viki
    Nov 9 at 18:00













up vote
-2
down vote

favorite









up vote
-2
down vote

favorite











enter image description here



I have two set of categories(CategoryVerticals and CategoryHorizontals).
onclick of a single category (eg.. CategoryVertical 1) I need to display some data.
onclick of two categories(eg.. CategoryVertical 1 & CategoryHorizontal 2) I need to display some data.



Likewise I have to display some data onClick of all Combinations like these. As we are doing Isotopes in JQuery.



My Horizontal Categories:



<div class="col-xs-6 col-sm-6 col-md-4 col-lg-2">
<button type="submit" class="btn1" id="cat1" (click)="onClick('cat1');changeTrans();"
</button>
</div>
<div class="col-xs-6 col-sm-6 col-md-4 col-lg-2">
<button type="submit" class="btn1" id="cat2" (click)="onClick('cat2');changeCol();"></button>
</div>
<div class="col-xs-6 col-sm-6 col-md-4 col-lg-2">
<button type="submit" class="btn1" id="cat3" (click)="onClick('cat3');changeBus();"></button>
</div>


My Vertical Categories:



<li (click)="submitVertical1();"><a href="" routerLink="/link">CategoryVetical1</a></li>
<li (click)="submitVertical2();"><a href="" routerLink="/link">CategoryVertical2</a></li>
<li (click)="submitVertical3()"><a href="" routerLink="/link">CategoryVertical2</a></li>


My Component.ts file:



  changeTrans(){
this.flagTrans =true;
}
changeCol(){
this.flagCol = true;
}
changeBus(){
this.flagBus = true;
}
submitVertical1(){
this.vertical1 = true;
if(this.vertical1 == true && this.flagTrans == true{
this.flagVerticalAndTrans = true;
}
else if(this.vertical1 == true && this.flagCol == true{
this.flagVerticalAndCol = true;
}
else if(this.vertical1 == true && this.flagBus == true{
this.flagVerticalAndBus = true;
}
}
submitVertical2(){
this.vertical2 =true;
if(this.vertical2 == true && this.flagTrans == true{
this.flagVerticalAndTrans = true;
}
else if(this.vertical2 == true && this.flagCol == true{
this.flagVerticalAndCol = true;
}
else if(this.vertical2 == true && this.flagBus == true{
this.flagVerticalAndBus = true;
}
}


And in html:



<div *ngIf="flagVerticalAndBus">
sample content
</div>
<div *ngIf="flagVerticalAndTrans">
sample content trans
</div>
<div *ngIf="flagVerticalAndCol">
sample content col
</div>
<div *ngIf="flagVerticalAndTrans">
sample vertical trans
</div>
<div *ngIf="flagVerticalAndCol">
sample vertical col
</div>
<div *ngIf="flagVerticalAndBus">
sample vertical Bus
</div>


But it is not working. Or do we have any other way to implement this? Please suggest.










share|improve this question















enter image description here



I have two set of categories(CategoryVerticals and CategoryHorizontals).
onclick of a single category (eg.. CategoryVertical 1) I need to display some data.
onclick of two categories(eg.. CategoryVertical 1 & CategoryHorizontal 2) I need to display some data.



Likewise I have to display some data onClick of all Combinations like these. As we are doing Isotopes in JQuery.



My Horizontal Categories:



<div class="col-xs-6 col-sm-6 col-md-4 col-lg-2">
<button type="submit" class="btn1" id="cat1" (click)="onClick('cat1');changeTrans();"
</button>
</div>
<div class="col-xs-6 col-sm-6 col-md-4 col-lg-2">
<button type="submit" class="btn1" id="cat2" (click)="onClick('cat2');changeCol();"></button>
</div>
<div class="col-xs-6 col-sm-6 col-md-4 col-lg-2">
<button type="submit" class="btn1" id="cat3" (click)="onClick('cat3');changeBus();"></button>
</div>


My Vertical Categories:



<li (click)="submitVertical1();"><a href="" routerLink="/link">CategoryVetical1</a></li>
<li (click)="submitVertical2();"><a href="" routerLink="/link">CategoryVertical2</a></li>
<li (click)="submitVertical3()"><a href="" routerLink="/link">CategoryVertical2</a></li>


My Component.ts file:



  changeTrans(){
this.flagTrans =true;
}
changeCol(){
this.flagCol = true;
}
changeBus(){
this.flagBus = true;
}
submitVertical1(){
this.vertical1 = true;
if(this.vertical1 == true && this.flagTrans == true{
this.flagVerticalAndTrans = true;
}
else if(this.vertical1 == true && this.flagCol == true{
this.flagVerticalAndCol = true;
}
else if(this.vertical1 == true && this.flagBus == true{
this.flagVerticalAndBus = true;
}
}
submitVertical2(){
this.vertical2 =true;
if(this.vertical2 == true && this.flagTrans == true{
this.flagVerticalAndTrans = true;
}
else if(this.vertical2 == true && this.flagCol == true{
this.flagVerticalAndCol = true;
}
else if(this.vertical2 == true && this.flagBus == true{
this.flagVerticalAndBus = true;
}
}


And in html:



<div *ngIf="flagVerticalAndBus">
sample content
</div>
<div *ngIf="flagVerticalAndTrans">
sample content trans
</div>
<div *ngIf="flagVerticalAndCol">
sample content col
</div>
<div *ngIf="flagVerticalAndTrans">
sample vertical trans
</div>
<div *ngIf="flagVerticalAndCol">
sample vertical col
</div>
<div *ngIf="flagVerticalAndBus">
sample vertical Bus
</div>


But it is not working. Or do we have any other way to implement this? Please suggest.







html css angular angular6






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 10 at 4:55

























asked Nov 9 at 16:27









viki

418




418








  • 1




    Asking for tutorials and examples is off-topic for Stackoverflow. Instead show us what you have tried and the problems you are having.
    – georgeawg
    Nov 9 at 16:51










  • @georgeawg I have updated my question. could you please check this?
    – viki
    Nov 9 at 18:00














  • 1




    Asking for tutorials and examples is off-topic for Stackoverflow. Instead show us what you have tried and the problems you are having.
    – georgeawg
    Nov 9 at 16:51










  • @georgeawg I have updated my question. could you please check this?
    – viki
    Nov 9 at 18:00








1




1




Asking for tutorials and examples is off-topic for Stackoverflow. Instead show us what you have tried and the problems you are having.
– georgeawg
Nov 9 at 16:51




Asking for tutorials and examples is off-topic for Stackoverflow. Instead show us what you have tried and the problems you are having.
– georgeawg
Nov 9 at 16:51












@georgeawg I have updated my question. could you please check this?
– viki
Nov 9 at 18:00




@georgeawg I have updated my question. could you please check this?
– viki
Nov 9 at 18:00

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53229639%2fhow-to-use-isotopes-in-angular6%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53229639%2fhow-to-use-isotopes-in-angular6%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Schultheiß

Verwaltungsgliederung Dänemarks

Liste der Kulturdenkmale in Wilsdruff