Git Product home page Git Product logo

udb3-angular's Introduction

Build Status Coverage Status

This project holds all the necessary angular recipes, styles and templates to create an UDB3 front-end.

Usage

You can use bower to manage any dependencies on this project. Navigate to your bower project and the following command: bower install --save cultuurnet/udb3-angular

If you are using wiredep to include all of your bower modules, udb3-angular.js and udb3-angular.css will be automatically included. You can find them in the dist folder together with a minified version if you want to include them manually.

The .css you get out of the box is based on Bootstrap and uses the default variables. You can make the styling blend in with your custom bootstrap theme by using the .less files in the 'src/styles' folder.

Configuration

Inject the udb.core module into your app module like this:

angular
  .module('myUdbApp', [
    'udb.core',
  ])
  .config(udbAppConfig)
  .run(function (udbApi) {
    udbApi.getMe();
  });

And use the following config to get you up and running.

function udbAppConfig($translateProvider, queryFieldTranslations, dutchTranslations, uiSelectConfig) {
  // Translation configuration
  var defaultTranslations = _.merge(dutchTranslations, queryFieldTranslations.nl);

  $translateProvider
    .translations('nl', defaultTranslations)
    .preferredLanguage('nl');
  // end of translation configuration

  uiSelectConfig.theme = 'bootstrap';
}

Directives

Directives are always prefixed with udb- and usable as elements, e.g.: <udb-directive-name></udb-directive-name>.

Search bar

Search

Development

This AngularJS Style Guide was used for the project.

Prepare your environment

  • Install Node.js and NPM (should come with)
  • Install global dev dependencies: npm install -g bower grunt-cli
  • Install local dev dependencies: npm install && bower install in repository directory

Test and build

grunt build and grunt test

udb3-angular's People

Contributors

bramcordie avatar cyberwolf avatar zuuperman avatar leevingo avatar alduya avatar bertramakers avatar nleroy avatar jonasvhg avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.