Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

help setting up ui-bootstrap datepicker in aspnet core

$
0
0

I am attempting to follow the installation pattern at: https://angular-ui.github.io/bootstrap/

For me, it doesn't work, the DateTime picker is not showing up.

I think (pretty sure) it is my angular dependency installation.  My angular module looks like this:

(function () {

    "use strict";

    angular.module("manageevents", ['ui.bootstrap','simpleControls']);

When I step through the javascript, the 'ui.bootstrap' module fails and the entire javascript fails.

My guess is that the module isn't found, I would like help figuring out what is missing and how to fix it.

My bower.json looks like this;

{

  "name": "asp.net",

  "private": true,

  "dependencies": {

    "bootstrap": "v3.3.7",

    "jquery": "3.2.1",

    "jquery-validation": "1.17.0",

    "jquery-validation-unobtrusive": "3.2.6",

    "font-awesome": "~4.7.0",

    "angular": "1.6.8",

    "angular-animate": "~1.6.8",

    "angular-ui-bootstrap": "~2.5.6",

    "angular-touch": "~1.6.8",

    "underscore": "~1.8.3",

    "bootswatch": "v3.3.7"

  },

  "resolutions": {

    "jquery-validation": "1.17.0",

    "bootswatch": "v3.3.7",

    "jquery": "3.2.1"

  }

}

and the calling view looks like this:

@section Scripts {

    <script src="~/lib/angular/angular.min.js"></script>

    <script src="~/js/simpleControls.js"></script>

    <script src="~/lib/ui-bootstrap/src/datepicker/datepicker.js"></script>

What could I be missing?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>