Category Archives: tech

Angular: Bootstrapping

When you hear “Bootstrap,” you may think of the popular CSS framework. However, with Angular, this term is used to describe getting your Angular app initialized.

There are 2 main ways to bootstrap your angular app.

The first is automatically bootstrapping by adding ng-app to the an element in your HTML:

<html ng-app="myApp">
...
</html>

The second would be to manually bootstrap from the JavaScript:

var app = angular.module("myApp", []);
angular.bootstrap(document, ['myApp']);