Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
155
Ignite UI + AngularJS for Visual Studio 2012
posted

Hello, im trying to set up a WebAPI project in visual studios 2012 that will be powered by AngularJS and use IgniteUI and seem to be running into problems with my script references. Is there anything i could do or any tutorials anyone could recommend besides the http://www.infragistics.com/community/blogs/craig_shoemaker/archive/2014/05/01/ignite-ui-angularjs-now-in-preview.aspx   link? 

Parents Reply
  • 10685
    Offline posted in reply to David Quinteros

    Hello,
    This exception suggests there is an issue with a module that isn't defined anywhere or hasn't been loaded in the current browser context. For reference:
    https://docs.angularjs.org/error/$injector/nomod

    For example, the resources used in the Angular Samples available at http://igniteui.github.io/igniteui-angular/, are referenced in the following order and format:
    <head>
        <link type="text/css" rel="stylesheet" href="//cdn-na.infragistics.com/igniteui/2014.2/latest/css/themes/infragistics/infragistics.theme.css" />
     <link type="text/css" rel="stylesheet" href="//cdn-na.infragistics.com/igniteui/2014.2/latest/css/structure/modules/infragistics.ui.shared.css" />
     <link type="text/css" rel="stylesheet" href="//cdn-na.infragistics.com/igniteui/2014.2/latest/css/structure/modules/infragistics.ui.grid.css" />
     <link type="text/css" rel="stylesheet" href="cdn-na.infragistics.com/igniteui/2014.2/latest/css/structure/modules/infragistics.ui.editors.css" />
        <link type="text/css" rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" />
        <link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" type="text/css" />
        <link rel="stylesheet" href="samples/sample.css" />
        <script src="//modernizr.com/downloads/modernizr-latest.js"></script>
    </head>
    <body>
        <script src="//code.jquery.com/jquery-1.10.2.min.js"></script>
    <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
        <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
     <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.3/angular.min.js"></script>
        <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.3/angular-route.min.js"></script>

     <script src="http://cdn-na.infragistics.com/jquery/20141/latest/js/infragistics.core.js"></script>
        <script src="http://cdn-na.infragistics.com/jquery/20141/latest/js/infragistics.lob.js"></script>
       
        <script src="src/igniteui-angular.js"></script>
        <script>var app = angular.module('app', ['ngRoute','igniteui-directives']);</script>
        <script src="samples/js/data/northwind-employees.js"></script>
        <script src="indexController.js"></script>
    </body>

    You could for example see how the dependencies are specified:
        <script>var app = angular.module('app', ['ngRoute','igniteui-directives']);</script>
    In general, the order is as follows: first load the css resources followed by jQuery and jQueryUI, bootstrap, angular, angular-route, Infragistics specific files like core and lob.js. 

Children
No Data