### No Directives

This view demonstrates how you can use the FlexGrid in applications that don't use AngularJS directives. The grid is attached to an existing HTML element based on the element's ID, using code.

To create a FlexGrid and associate it with an existing HTML element, you must pass the element (or its id) to the FlexGrid's constructor (e.g. new wijmo.grid.FlexGrid(element). To get a reference to a control from the element that is hosting it, use the wijmo.Control.getControl(element) method. To get a reference to the element that is hosting a control, use the hostElement property.