Angular ng-if multiple conditions not working
<p>This is a relatively simple question but I cannot figure out why this isn't working. </p>

<p>So I have ng-if statement in HTML where I check condition if its not true. as in: </p>

<pre><code>&lt;div class="new-asset" data-ng-if="$root.questionData.question_type_id != '1' || $root.questionData.question_type_id != '8'"&gt;
</code></pre>

<p>But for some reason this does not work. I also tried:</p>

<pre><code>&lt;div class="new-asset" data-ng-if="($root.questionData.question_type_id != '1' || $root.questionData.question_type_id != '8')"&gt;
</code></pre>

<p>Which has no affect whatsoever... I was reading up and trying to find a solution, someone suggested placing the condition in controller, which would also have performance increase (not 100% sure if it would), as in: </p>

<pre><code>$scope.addNewAssetIf = $root.questionData.question_type_id != '1' || $root.questionData.question_type_id != '8';
</code></pre>

<p>and then referencing it in html as:</p>

<pre><code>&lt;div class="new-asset" data-ng-if="addNewAssetIf"&gt;
</code></pre>

<p>But I cannot use this approach due to asynchronous loading, and dependencies. I need to make this work somehow, I get no errors or anything, even though the question_type_id is 1 I still get .net-asset div shown. If I remove OR statement and only have 1 condition it works: </p>

<pre><code>&lt;div class="new-asset" data-ng-if="$root.questionData.question_type_id != '1' || $root.questionData.question_type_id != '8'"&gt;
</code></pre>

<p>Any help is appreciated.</p>

<p>Thanks</p>