# Function ngModelDirective

- ngModelDirective(): {
  compile: (
  element: Element,
  ) => {
  post: (scope: any, element: any, _attr: any, ctrls: any) => void;
  pre: (scope: any, _element: any, attr: any, ctrls: any) => void;
  };
  controller: typeof NgModelController;
  priority: number;
  require: string[];
  restrict: string;
  }

  #### Returns {
  compile: (
  element: Element,
  ) => {
  post: (scope: any, element: any, _attr: any, ctrls: any) => void;
  pre: (scope: any, _element: any, attr: any, ctrls: any) => void;
  };
  controller: typeof NgModelController;
  priority: number;
  require: string[];
  restrict: string;
  }

  - Defined in src/directive/model/model.js:1108