How to load Model function in block in Magento 2 when overriding or extending a core block

- Fire development, Magento 2

Magento 2 Development

In Magento 2, you should add a constructor with order factory:

'

use it in method hello

Source (Stackexchange Question)(KAndy)

More tips from the Cookbook

'