angular_barcode 0.0.1 copy "angular_barcode: ^0.0.1" to clipboard
angular_barcode: ^0.0.1 copied to clipboard

outdatedDart 1 only

Draw Barcode with Angular 2

example/angular_barcode.dart

// Copyright (c) 2015, <your name>. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

library dart_barcode.example;

import 'dart:async';
import 'package:angular2/platform/browser.dart';
import 'package:angular2/core.dart';
import 'package:angular_barcode/angular_barcode.dart';

main() {
  bootstrap(App);
}

@Component(
  selector: "app",
  template: '''
    <angular-barcode #barcode value="1234567890128" [displayValue]="true" format="ean13" [width]="width"></angular-barcode>
  ''',
  directives: const [AngularBarcode],
)
class App implements OnInit {
  num width = 2;

  @ViewChild("barcode")
  AngularBarcode barcode;

  @override
  ngOnInit() {
    new Timer(const Duration(seconds: 2), () {
      width = 5;
      barcode.height = 200;
    });
  }
}
0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Draw Barcode with Angular 2

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

angular2, dart_barcode

More

Packages that depend on angular_barcode