Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng-blueprint

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-blueprint

Specify page layouts for an Angular project

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

ng-blueprint

NPM Version Bower Version Build Status Dependencies Dev Depedencies

A simple package to create reusable page layouts for your Angular projects

Usage

First, add the library to your angular module

angular.module("app", [
    "ng-blueprint"
]);

Next, configure the layoutPath in the config phase of your angular app

angular.config(function (blueprintProvider) {

    blueprintProvider.setLayoutPath("path/to/view/layouts");

});

Next, configure your layout file. This is our default.html file. The ng-transclude will be where the content is displayed (further information on ngTransclude can be found here)

<div class="layout default_layout">

    Default layout

    <div ng-transclude></div>

</div>

Finally, add the blue-print directive around your HTML

<blue-print>

    layout content

</blue-print>

If you don't specify a layout="" in the blue-print element, it will use your 'default' layout. The layout name is the file name (less the '.html' bit);

@todo

Unit tests

License

MIT License

Keywords

FAQs

Package last updated on 13 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc