Skip to content

Manager Module(tags)

kevin edited this page Nov 28, 2020 · 2 revisions

Manager Modules

A manager-module is an html tag that let's u use templates like {{variable}} and so. thou u place a manager-module, it will still be useless without javascript to give it power.

Usage

HTML

<manager-module module="ModuleName">
   My name is {{name}} and i am {{age}} years old !!
   This is a dash: {{variable }}
</manager-module>

JavaScript

var Objm = Manager.OBJM("name"),
       $scope = Objm.Objs;

   $scope.name = "John";
   $scope.age = "25";

  Objm.set("hello","Hello World Managerjs!");

  console.log($scope);

  Objm.controller('ModuleName',function(obj){
    obj.variable = "_______";
  },{
    extends: "name",
  });
Clone this wiki locally