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



    Hi

    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
    Hi,

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

    https://docs.angularjs.org/guide/directive

    Rayala HariKishore

    try..try..try...you achieved it.
    http://rayalaharikishore.wordpress.com/

  • #757178
    Hi
    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

    http://www.w3schools.com/angular/angular_examples.asp
    http://www.w3schools.com/angular/

    Reference url

    http://www.w3schools.com/angular/angular_ref_directives.asp

    Name : Dotnet Developer-2015
    Email Id : kumaraspcode2009@gmail.com

    '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>

    </div>

    for custom attributes see below snippet
    http://www.w3schools.com/angular/angular_directives.asp

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


  • Sign In to post your comments