Check out a free preview of the full Angular 1.x Essentials course:
The "$compile" Lesson is part of the full, Angular 1.x Essentials course featured in this preview video. Here's what you'd learn in this lesson:
The $compile command in AngularJS compiles DOM elements into a template function that can be used to link $scope and View together. It's through this process that AngularJS creates dynamic DOM elements.