This should do what you want:

<div class="comeBack_up" *ngIf="(previous_info | json) != ({} | json)">

or shorter

<div class="comeBack_up" *ngIf="(previous_info | json) != '{}'">

Each {} creates a new instance and ==== comparison of different objects instances always results in false. When they are convert to strings === results to true

Plunker example

Answer from Günter Zöchbauer on Stack Overflow
🌐
Web-profile
web-profile.net › angular › dev › angular-check-empty-object
Angular check if object is empty in template – web-profile
Solution which works with empty object, null and undefined as a value: <ng-container *ngIf="(user | keyvalue)?.length"> {{ user.id }} </ng-container> Alternative solution: <ng-container *ngIf="(user | json) != '{}'"> {{ user.id }} </ng-container> Angular animation · Angular build version · Angular check if array is empty in template ·
🌐
freeCodeCamp
freecodecamp.org › news › check-if-an-object-is-empty-in-javascript
How to Check if an Object is Empty in JavaScript – JS Java isEmpty Equivalent
November 7, 2024 - For example, if you want to check if an object is empty, you only need to use the "isEmpty" method.
🌐
GitHub
github.com › AlexKhymenko › ngx-if-empty-or-has-items
GitHub - AlexKhymenko/ngx-if-empty-or-has-items: In Angular template checks if value is an empty(or not) object, collection, map, or set
<!-- You can now use your library component in app.component.html --> arr = [] || {} arrayOrObjWithData = ['1'] || {id: 1} <h1 *ngxIfEmpty="arr"> You will see this text </h1> <!-- You can also use 'as' syntax to store data in variable --> <h1 *ngxIfNotEmpty="object$ | async as obj"> {{obj.name}} </h1> <h1 *ngxIfNotEmpty="arrayOrObjWithData"> You will see it </h1> <h1 *ngxIfHasItems="arrayOrObjWithData"> You will see it </h1> <div *ngxIfEmpty="arr; then thenBlock; else elseBlock">this is ignored</div> <ng-template #primaryBlock>Primary text to show</ng-template> <ng-template #secondaryBlock>Secondary text to show</ng-template> <ng-template #elseBlock>Alternate text while primary text is hidden</ng-template>
Starred by 15 users
Forked by 3 users
Languages   JavaScript 56.0% | TypeScript 41.4% | HTML 2.6%
Find elsewhere
🌐
Bobby Hadz
bobbyhadz.com › blog › typescript-check-if-object-is-empty
Check if an Object is Empty in TypeScript | bobbyhadz
The lodash.isempty method checks if the supplied value is an empty object, collection, Map or Set.
🌐
AngularJS
docs.angularjs.org › api › ng › function › angular.isObject
API: angular.isObject
AngularJS is what HTML would have been, had it been designed for building web-apps. Declarative templates with data-binding, MVC, dependency injection and great testability story all implemented with pure client-side JavaScript!
🌐
Stack Overflow
stackoverflow.com › questions › 27987325 › how-to-check-if-a-returned-object-is-empty-or-populated-in-angularjs
How to check if a returned object is empty or populated in AngularJS
You need to return empty response with 404 code if quiz is not found and then check for it. ... In the line if (angular.equals(smpleitem,emptyQuizObject)) you have a typo - smpleitem should be sampleitem
🌐
ItSolutionstuff
itsolutionstuff.com › post › angular-check-ngif-null-or-empty-angular-check-if-array-is-emptyexample.html
Angular Check ngIf Null or Empty | Angular Check If Array is Empty - ItSolutionstuff.com
May 2, 2024 - This tutorial will provide example of how to check array is empty in angular. i would like to show you angular check if string is empty or null. This article will give you simple example of angular check if object is empty ngif. it's simple example of angular check ngif array is empty.
🌐
CoreUI
coreui.io › answers › how-to-check-if-an-object-is-empty-in-javascript
How to check if an object is empty in JavaScript · CoreUI
October 23, 2025 - If the array length equals 0, the object has no properties and is considered empty. This method correctly identifies {} as empty while properly handling objects with inherited properties or non-enumerable properties.