---
id: fast-element.view.bind
title: View.bind() method
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-element](./fast-element.md) &gt; [View](./fast-element.view.md) &gt; [bind](./fast-element.view.bind.md)

## View.bind() method

Binds a view's behaviors to its binding source.

<b>Signature:</b>

```typescript
bind(source: unknown, context: ExecutionContext): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  source | unknown | The binding source for the view's binding behaviors. |
|  context | [ExecutionContext](./fast-element.executioncontext.md) | The execution context to run the view within. |

<b>Returns:</b>

void
