ngif not null code example Example: angular ngif object not null this.objectLength = Object.keys(this.previous_info).length != 0;