You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Welcome to angular-dfp, the javascript library that lets you integrate the GPT library into your Angular app with a beautiful semantic declarative syntax.
1. Get angular-dfp
Angular-dfp is available as an npm package. You can install it with npm:
$ npm install angular-dfp --save
After that you can integrate it with your front-end build pipeline of choice or you can just get the angular-dfp.min.js and include it in your project.
For instance:
<!DOCTYPE html><html><head><scriptsrc="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js"></script><scriptsrc="https://unpkg.com/angular-dfp@1.0.1/angular-dfp.min.js"></script></head><bodyng-app="myApp"><!-- my app here --></body></html>
2. Adding angular-dfp to Your Angular App
Angular-dfp is contained within an Angular module. In order to include it in your application just add it as a dependency of your application module:
angular.module('myApp',['angularDfp']);
3. Initialize Angular DFP
Before you can start using Angular DFP you need to initialize it. Add the following code to your application's code: