Wijmo UI for the Web
References and Basic Markup
Wijmo User Guide > AngularJS Directives > Getting Started with AngularJS > References and Basic Markup

The first step to creating a web app with AngularJS and Wijmo is to create basic markup and include references.

Basic Markup

The basic framework of HTML markup that you use with Wijmo and Angular looks like this, which includes a model (optional) and controller (required). Here is a breakdown of the elements of this framework.

Basic Framework
Copy Code
<!DOCTYPE HTML>
<HTML ng-app="MyApp">
<head>
    <script type="text/javascript">
        var app = angular.module("MyApp", ["wijmo"]); 
        function MyController($scope) {}
    </script>
</head>
<body ng-controller="MyController">
</body>
</HTML>

References

To use our AngularJS components, add references to jQuery, Wijmo, Angular, and the Wijmo AngularJS integration library. Note that the Angular references must follow all of the jQuery and Wijmo references. The references go inside the <head> before the script in the basic framework above.

Drop down to view all of the references you need to use Wijmo with AngularJS

References
Copy Code
<!-- jQuery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.0/jquery-ui.min.js" type="text/javascript"></script>

<!--Theme-->
<link href="http://cdn.wijmo.com/themes/aristo/jquery-wijmo.css" rel="stylesheet" type="text/css" />

<!--Wijmo Widgets CSS-->
<link href="http://cdn.wijmo.com/jquery.wijmo-pro.all.3.20183.140.min.css" rel="stylesheet" type="text/css" />

<!-- Wijmo Scripts -->
<script src="http://cdn.wijmo.com/jquery.wijmo-open.all.3.20161.90.min.js" type="text/javascript"></script>
<script src="http://cdn.wijmo.com/jquery.wijmo-pro.all.3.20161.90.min.js" type="text/javascript"></script>

<!-- Angular -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular.min.js"></script>
<script src="http://cdn.wijmo.com/interop/angular.wijmo.3.20161.90.min.js"></script>
See Also