Angular Directives (ng-app)

All

Intro

I remember working with JS and using Angular framework, back in 2014/2015, and it was quite interesting to use the ng-app directive. But I actually never saw what was behind this directive on the html.

Angular directives – ng-app directives

Actually, after seeing the init function, we verify that you can use more than one directive to start Angular framework. Be careful though, some validators DOES NOT RECOGNIZE ALL THEM. – if that’s the case, please declare a namespace

<html xmlns:ng="http://angularjs.org" ng-app>

Init Function

This function takes the following names (angular directives)

    names = [‘ng:app’, ‘ng-app’, ‘x-ng-app’, ‘data-ng-app’]

REFs

inline

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s