Skip to content

kumaro/package-ngofficeuifabric

 
 

Repository files navigation

MIT license npm version bower version NuGet version

This repo is for the distribution of the ngOfficeUiFabric on npm and bower. The source for this module is in the main ngOfficeUiFabric repo. Please submit issues and pull requests against that repo.

Installing ngOfficeUiFabric

You can install this package locally either with npm, bower or NuGet.

npm

# To install latest stable release
npm install ng-office-ui-fabric

# To install latest stable release and update package.json
npm install ng-office-ui-fabric --save

# To install from HEAD of master
npm install https://github.com/ngofficeuifabric/package-ngofficeuifabric/tarball/master

bower

# To get the latest stable version, use bower from the command line.
bower install ng-office-ui-fabric

# To get the most recent, last committed-to-master version use:
bower install ng-office-ui-fabric#master

# To save the bower settings for future use:
bower install ng-office-ui-fabric --save

NuGet

# To get the latest stable version, use NPM from the Package Manager Console or
#   the NuGet Package Manager wizard in Visual Studio
Install-Package ng-office-ui-fabric

Please note that ngOfficeUiFabric requires Angular 1.4.9 or higher & Office UI Fabric 2.0.x or higher.

CDN

Hosting facilitated by CDNJS, a community driven CDN. Get a link to the desired version of ngOfficeUiFabric from here: https://cdnjs.com/libraries/ngOfficeUiFabric:

Using the ngOfficeUiFabric Library

Now that you have installed the ngOfficeUiFabric libraries, simply include the scripts and stylesheet in your main HTML file, in the order shown in the example below. Note that npm will install the files under /node_modules/ng-office-ui-fabric/ and bower will install them under /bower_components/ng-office-ui-fabric/.

npm

<!DOCTYPE html>
<html>
<head>
  <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" />
  <!-- add Office UI Fabric stylesheets (there are minified options too) -->
  <link rel="stylesheet" href="/node_modules/office-ui-fabric/fabric.css">
  <link rel="stylesheet" href="/node_modules/office-ui-fabric/fabric.components.css">
</head>
<body ng-app="YourApp">

  <div ng-controller="YourController">
    ..
  </div>

  <!-- add angular & ngOfficeUiFabric (there are minified options too) -->
  <script src="/node_modules/angular/angular.js"></script>
  <script src="/node_modules/ng-office-ui-fabric/ngOfficeUiFabric.js"></script>

    // Include app dependency on ngOfficeUIFabric
    angular.module('YourApp', [
        'officeuifabric.core',
        'officeuifabric.components'
      ])
      .controller('YourController', YourController);

  </script>

</body>
</html>

bower

<!DOCTYPE html>
<html>
<head>
  <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" />
  <!-- add Office UI Fabric stylesheets (there are minified options too) -->
  <link rel="stylesheet" href="/bower_components/office-ui-fabric/fabric.css">
  <link rel="stylesheet" href="/bower_components/office-ui-fabric/fabric.components.css">
</head>
<body ng-app="YourApp">

  <div ng-controller="YourController">
    ..
  </div>

  <!-- add angular & ngOfficeUiFabric (there are minified options too) -->
  <script src="/bower_components/angular/angular.js"></script>
  <script src="/bower_components/ng-office-ui-fabric/ngOfficeUiFabric.js"></script>

    // Include app dependency on ngOfficeUIFabric
    angular.module('YourApp', [
        'officeuifabric.core',
        'officeuifabric.components'
      ])
      .controller('YourController', YourController);

  </script>

</body>
</html>

NuGet

<!DOCTYPE html>
<html>
<head>
  <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" />
  <!-- add Office UI Fabric stylesheets (there are minified options too) -->
  <link rel="stylesheet" href="/content/fabric.css">
  <link rel="stylesheet" href="/content/fabric.components.css">
</head>
<body ng-app="YourApp">

  <div ng-controller="YourController">
    ..
  </div>

  <!-- add angular & ngOfficeUiFabric (there are minified options too) -->
  <script src="/scripts/angular.js"></script>
  <script src="/scripts/ngOfficeUiFabric.js"></script>

    // Include app dependency on ngOfficeUIFabric
    angular.module('YourApp', [
        'officeuifabric.core',
        'officeuifabric.components'
      ])
      .controller('YourController', YourController);

  </script>

</body>
</html>

About

Distribution for NPM & Bower

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%