Steven Senkus

Software Developer living in 🌞 sunny, 🌞 sunny San Diego

Valid AngularJS Directives

Believe it or not, the following examples are valid AngularJS directives: It starts off as normal as can be… We’ll start off by creating a simple Angular module. var App = angular.module('awesomeApp', []); Usually, you will see Angular developers automatically placing the ng-app directive on the tag. In our case, we only want to manage what’s inside this particular element. <div ng-app="awesomeApp"></div> Angular is going to have control over the DOM elements contained within this div. Read more →