You must Sign In to post a response.
  • Category: HTML

    How to Create a directive that creates the directives in angular js ?

    Are you looking for a way to create a directive in angular js ? then read this thread to know how to do it


    I am new in angularjs
    I need to Create a directive that creates the <object> nodes in the HTML.
    and I need to implement the directive in a .directive.js file
    Can u plz help me how to do this ?
    Best Regards
  • #757172

    there is best resource for angular js, its developer guide. go through this link

    Rayala HariKishore achieved it.

  • #757178
    Angular js like a class in Client side . we can use this like a mvc4 controller we can access the controller method First download for angular js and refer your web application

    Refer this url

    Reference url

    Name : Dotnet Developer-2015
    Email Id :

    'Not by might nor by power, but by my Spirit,' says the LORD Almighty.

  • #757209
    AngularJS lets you extend HTML with new attributes called Directives. AngularJS directives are extended HTML attributes with the prefix ng-.

    The ng-app directive initializes an AngularJS application.

    The ng-init directive initializes application data.

    The ng-model directive binds the value of HTML controls (input, select, textarea) to application data.
    see below snippet

    <div ng-app="" ng-init="firstName='John'">

    <p>Name: <input type="text" ng-model="firstName"></p>
    <p>You wrote: {{ firstName }}</p>


    for custom attributes see below snippet

    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

  • Sign In to post your comments